diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-04-02 21:12:22 -0400 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-04-02 21:12:22 -0400 |
commit | 37fa8efbd8691d89fcd22727e3720621fff3680c (patch) | |
tree | 8723b96b26f0d30ffa66f8408d5ca2cd93e4a858 /src/preview.rs | |
parent | 554f06d72aeb639548314336b2318e14f8ffcc7e (diff) |
refactor sorting structs
- filtering hidden files is de-coupled from creating direntries
Diffstat (limited to 'src/preview.rs')
-rw-r--r-- | src/preview.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/preview.rs b/src/preview.rs index bd093bd..2dbf21c 100644 --- a/src/preview.rs +++ b/src/preview.rs @@ -12,7 +12,7 @@ pub fn preview_file(curr_tab: &mut JoshutoTab, views: &JoshutoView, config_t: &J if entry.path.is_dir() { match curr_tab .history - .get_mut_or_create(&entry.path, &config_t.sort_type) + .get_mut_or_create(&entry.path, &config_t.sort_option) { Ok(dirlist) => { views |