Skip to content

Commit

Permalink
fix: keep checking for existance of entries outside of the glob top-l…
Browse files Browse the repository at this point in the history
…evel.

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.
  • Loading branch information
Byron committed Dec 25, 2023
1 parent f7958cc commit 8ae727e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interactive/app/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 8ae727e

Please sign in to comment.