diff options
author | Noah Too <krivahtoo@gmail.com> | 2022-10-17 19:39:53 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-17 12:39:53 -0400 |
commit | be452d4c9abf7891111138000fe7683f169d69a5 (patch) | |
tree | 75d9967795d601f7dc7eacd5e3dede155bd36d1f /src/fs | |
parent | 02c7e941566a2d828e77dd33a6dda74c8a0c42ef (diff) |
add `filter` command (#205)
* add `filter` command
* cargo fmt
Diffstat (limited to 'src/fs')
-rw-r--r-- | src/fs/dirlist.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fs/dirlist.rs b/src/fs/dirlist.rs index 1d035fa..dfd8831 100644 --- a/src/fs/dirlist.rs +++ b/src/fs/dirlist.rs @@ -46,7 +46,7 @@ impl JoshutoDirList { tab_options: &TabDisplayOption, ) -> io::Result<Self> { let filter_func = options.filter_func(); - let mut contents = read_directory(path.as_path(), filter_func, options)?; + let mut contents = read_directory(path.as_path(), filter_func, options, tab_options)?; contents.sort_by(|f1, f2| tab_options.sort_options_ref().compare(f1, f2)); let index = if contents.is_empty() { None } else { Some(0) }; |