diff options
author | Sebastian Thiel <sebastian.thiel@icloud.com> | 2023-12-25 08:07:50 +0100 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2023-12-25 08:07:50 +0100 |
commit | 8ae727e462b38541636c8e03d140953cad8f34cf (patch) | |
tree | 6d204cf72d037d8e2ef31435f8cfe15af8baf59a | |
parent | f7958ccb36ab6023857bc3cdfba9ef90fdfe0c99 (diff) |
fix: keep checking for existance of entries outside of the glob top-level.
The glob top-level is used to display all search results which means
that there can be a lot of them, which would unnecessarily slow down
the search operation.
Previously it would never check for the existence of an entry in glob mode,
but now it will do so outside of the top-level.
-rw-r--r-- | src/interactive/app/common.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interactive/app/common.rs b/src/interactive/app/common.rs index 3b79a9a..99d0d6b 100644 --- a/src/interactive/app/common.rs +++ b/src/interactive/app/common.rs @@ -76,7 +76,7 @@ pub fn sorted_entries( let use_glob_path = glob_root.map_or(false, |glob_root| glob_root == node_idx); let (path, exists, is_dir) = { let path = path_of(tree, idx, glob_root); - if glob_root.is_some() { + if glob_root == Some(node_idx) { (path, true, entry.is_dir) } else { let meta = path.symlink_metadata(); |