diff options
Diffstat (limited to 'src/commands/rename_file.rs')
-rw-r--r-- | src/commands/rename_file.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/commands/rename_file.rs b/src/commands/rename_file.rs index 57e1621..45ad9fe 100644 --- a/src/commands/rename_file.rs +++ b/src/commands/rename_file.rs @@ -27,6 +27,7 @@ pub fn _rename_file( .map(|lst| lst.file_path().to_path_buf()); if let Some(path) = path { + let config = context.config_ref().clone(); let options = context.config_ref().display_options_ref().clone(); let tab_options = context .tab_context_ref() @@ -35,7 +36,7 @@ pub fn _rename_file( .clone(); let history = context.tab_context_mut().curr_tab_mut().history_mut(); let new_dirlist = - create_dirlist_with_history(history, path.as_path(), &options, &tab_options)?; + create_dirlist_with_history(history, path.as_path(), &config, &options, &tab_options)?; history.insert(path, new_dirlist); } Ok(()) |