diff options
Diffstat (limited to 'src/interactive/app/common.rs')
-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(); |