summaryrefslogtreecommitdiffstats
path: root/src/commands/change_directory.rs
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2019-04-02 21:12:22 -0400
committerJiayi Zhao <jeff.no.zhao@gmail.com>2019-04-02 21:12:22 -0400
commit37fa8efbd8691d89fcd22727e3720621fff3680c (patch)
tree8723b96b26f0d30ffa66f8408d5ca2cd93e4a858 /src/commands/change_directory.rs
parent554f06d72aeb639548314336b2318e14f8ffcc7e (diff)
refactor sorting structs
- filtering hidden files is de-coupled from creating direntries
Diffstat (limited to 'src/commands/change_directory.rs')
-rw-r--r--src/commands/change_directory.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/commands/change_directory.rs b/src/commands/change_directory.rs
index ae77964..8406940 100644
--- a/src/commands/change_directory.rs
+++ b/src/commands/change_directory.rs
@@ -47,11 +47,11 @@ impl ChangeDirectory {
curr_tab
.history
- .populate_to_root(&curr_tab.curr_path, &context.config_t.sort_type);
+ .populate_to_root(&curr_tab.curr_path, &context.config_t.sort_option);
curr_tab.curr_list = match curr_tab
.history
- .pop_or_create(&curr_tab.curr_path, &context.config_t.sort_type)
+ .pop_or_create(&curr_tab.curr_path, &context.config_t.sort_option)
{
Ok(s) => Some(s),
Err(e) => {
@@ -63,7 +63,7 @@ impl ChangeDirectory {
if let Some(parent) = curr_tab.curr_path.parent() {
curr_tab.parent_list = match curr_tab
.history
- .pop_or_create(&parent, &context.config_t.sort_type)
+ .pop_or_create(&parent, &context.config_t.sort_option)
{
Ok(s) => Some(s),
Err(e) => {