diff options
author | makeefu <makeefu@ya.ru> | 2021-05-17 11:49:45 +0300 |
---|---|---|
committer | makeefu <makeefu@ya.ru> | 2021-05-17 11:49:45 +0300 |
commit | d205431ee15c5dee82990b4889db3794a5151426 (patch) | |
tree | b83956bddee48d40e1a5f36aac97b8984269d871 /src/commands/sort.rs | |
parent | e65cdccf066b85caa9590d52daa0e37189958e49 (diff) |
some sorting features added
Diffstat (limited to 'src/commands/sort.rs')
-rw-r--r-- | src/commands/sort.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/commands/sort.rs b/src/commands/sort.rs index 161f2ba..58ffd2e 100644 --- a/src/commands/sort.rs +++ b/src/commands/sort.rs @@ -8,8 +8,10 @@ use crate::util::sort::SortType; use super::reload; pub fn set_sort(context: &mut AppContext, method: SortType) -> JoshutoResult<()> { - context.config_mut().sort_options_mut().sort_method = method; - + context + .config_mut() + .sort_options_mut() + .set_sort_method(method); for tab in context.tab_context_mut().iter_mut() { tab.history_mut().depreciate_all_entries(); } |