File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
36
36
- fish: ` cd ` command is now copied directly from
37
37
` $__fish_data_dir/functions/cd.fish ` . This should minimize the chances of an
38
38
infinite loop when aliasing ` cd=z ` .
39
+ - Symlinks not getting added to the database when ` $_ZO_RESOLVE_SYMLINKS=0 ` .
39
40
40
41
## [ 0.9.4] - 2024-02-21
41
42
Original file line number Diff line number Diff line change @@ -83,8 +83,12 @@ impl<'a> Stream<'a> {
83
83
if !self . options . exists {
84
84
return true ;
85
85
}
86
+
87
+ // The logic here is reversed - if we resolve symlinks when adding entries to
88
+ // the database, we should not return symlinks when querying back from
89
+ // the database.
86
90
let resolver =
87
- if self . options . resolve_symlinks { fs:: metadata } else { fs:: symlink_metadata } ;
91
+ if self . options . resolve_symlinks { fs:: symlink_metadata } else { fs:: metadata } ;
88
92
resolver ( path) . map ( |metadata| metadata. is_dir ( ) ) . unwrap_or_default ( )
89
93
}
90
94
}
You can’t perform that action at this time.
0 commit comments