diff options
Diffstat (limited to 'src/commands')
-rw-r--r-- | src/commands/change_directory.rs | 1 | ||||
-rw-r--r-- | src/commands/open_file.rs | 2 | ||||
-rw-r--r-- | src/commands/reload.rs | 2 | ||||
-rw-r--r-- | src/commands/tab_ops.rs | 1 |
4 files changed, 1 insertions, 5 deletions
diff --git a/src/commands/change_directory.rs b/src/commands/change_directory.rs index 6ac2575..ebf471f 100644 --- a/src/commands/change_directory.rs +++ b/src/commands/change_directory.rs @@ -30,7 +30,6 @@ pub fn change_directory(context: &mut AppContext, mut path: &path::Path) -> AppR cd(new_cwd.as_path(), context)?; let dirlists = generate_entries_to_root( new_cwd.as_path(), - context.config_ref(), context.tab_context_ref().curr_tab_ref().history_ref(), context.ui_context_ref(), context.config_ref().display_options_ref(), diff --git a/src/commands/open_file.rs b/src/commands/open_file.rs index fe057b0..0f4ab20 100644 --- a/src/commands/open_file.rs +++ b/src/commands/open_file.rs @@ -23,7 +23,7 @@ fn _get_options<'a>(path: &path::Path, config: &AppConfig) -> Vec<&'a ProgramEnt .extension() .and_then(|ext| ext.to_str()) .and_then(|ext| { - if config.case_sensitive_ext { + if config.case_insensitive_ext { MIMETYPE_T.app_list_for_ext(ext) } else { MIMETYPE_T.app_list_for_ext(&ext.to_lowercase()) diff --git a/src/commands/reload.rs b/src/commands/reload.rs index 4134272..d59d0cd 100644 --- a/src/commands/reload.rs +++ b/src/commands/reload.rs @@ -8,7 +8,6 @@ use uuid::Uuid; pub fn soft_reload(context: &mut AppContext, id: &Uuid) -> std::io::Result<()> { let mut dirlists = Vec::with_capacity(3); if let Some(curr_tab) = context.tab_context_ref().tab_ref(id) { - let config = context.config_ref(); let display_options = context.config_ref().display_options_ref(); let tab_options = context.tab_context_ref().curr_tab_ref().option_ref(); let history = curr_tab.history_ref(); @@ -50,7 +49,6 @@ pub fn soft_reload_curr_tab(context: &mut AppContext) -> std::io::Result<()> { pub fn reload(context: &mut AppContext, id: &Uuid) -> std::io::Result<()> { let mut dirlists = Vec::with_capacity(3); if let Some(curr_tab) = context.tab_context_ref().tab_ref(id) { - let config = context.config_ref(); let display_options = context.config_ref().display_options_ref(); let tab_options = context.tab_context_ref().curr_tab_ref().option_ref(); let history = curr_tab.history_ref(); diff --git a/src/commands/tab_ops.rs b/src/commands/tab_ops.rs index f1adfe2..e519267 100644 --- a/src/commands/tab_ops.rs +++ b/src/commands/tab_ops.rs @@ -159,7 +159,6 @@ pub fn new_tab(context: &mut AppContext, mode: &NewTabMode) -> AppResult { .clone(); let dirlists = generate_entries_to_root( new_tab_path.as_path(), - context.config_ref(), &new_tab_history, context.ui_context_ref(), context.config_ref().display_options_ref(), |