diff options
Diffstat (limited to 'src/commands/delete_files.rs')
-rw-r--r-- | src/commands/delete_files.rs | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/commands/delete_files.rs b/src/commands/delete_files.rs index 35a2dfd..59d2b5c 100644 --- a/src/commands/delete_files.rs +++ b/src/commands/delete_files.rs @@ -77,10 +77,13 @@ fn _delete_selected_files( ) -> std::io::Result<()> { delete_files(context, backend, false)?; + let curr_tab = context.tab_context_ref().curr_tab_ref(); let options = context.config_ref().display_options_ref().clone(); - let curr_path = context.tab_context_ref().curr_tab_ref().cwd().to_path_buf(); + let curr_path = curr_tab.cwd().to_path_buf(); + let tab_option = curr_tab.option_ref().clone(); for tab in context.tab_context_mut().iter_mut() { - tab.history_mut().reload(&curr_path, &options)?; + tab.history_mut() + .reload(&curr_path, &options, &tab_option)?; } Ok(()) } @@ -96,10 +99,13 @@ fn _delete_selected_files_background( ) -> std::io::Result<()> { delete_files(context, backend, true)?; + let curr_tab = context.tab_context_ref().curr_tab_ref(); let options = context.config_ref().display_options_ref().clone(); - let curr_path = context.tab_context_ref().curr_tab_ref().cwd().to_path_buf(); + let curr_path = curr_tab.cwd().to_path_buf(); + let tab_option = curr_tab.option_ref().clone(); for tab in context.tab_context_mut().iter_mut() { - tab.history_mut().reload(&curr_path, &options)?; + tab.history_mut() + .reload(&curr_path, &options, &tab_option)?; } Ok(()) } |