summaryrefslogtreecommitdiffstats
path: root/src/commands/rename_file.rs
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2019-02-20 19:12:10 -0500
committerJiayi Zhao <jeff.no.zhao@gmail.com>2019-02-20 19:12:52 -0500
commitc829e7849a44922cb55149f3874a82cda1040c89 (patch)
treee8e167eef9f0d5bb8d1e008c1bc2bb9936646718 /src/commands/rename_file.rs
parent412b1ebb44382522084f615d58cb75374bc64778 (diff)
change how preview works
Diffstat (limited to 'src/commands/rename_file.rs')
-rw-r--r--src/commands/rename_file.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/rename_file.rs b/src/commands/rename_file.rs
index 9de918b..24b3e96 100644
--- a/src/commands/rename_file.rs
+++ b/src/commands/rename_file.rs
@@ -107,7 +107,7 @@ impl JoshutoRunnable for RenameFile {
if let Some(file_name) = file_name {
if let Some(path) = path {
self.rename_file(&path, context, file_name);
- preview::preview_file(context);
+ preview::preview_file(&mut context.tabs[context.curr_tab_index], &context.views, &context.config_t);
ncurses::doupdate();
}
}