summaryrefslogtreecommitdiffstats
path: root/src/commands/delete_files.rs
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2019-03-02 11:36:24 -0500
committerJiayi Zhao <jeff.no.zhao@gmail.com>2019-03-02 11:39:11 -0500
commitfbf2f40d909a537b9c6e58926f03f648041d2c01 (patch)
tree9e79d64b705dd4dd79d01d4884760b9eb6ac1fa0 /src/commands/delete_files.rs
parent18bcda1f84f91f59c0de62edf50c76f9ac32bf81 (diff)
make sure preview panel reloads upon certain commands
Diffstat (limited to 'src/commands/delete_files.rs')
-rw-r--r--src/commands/delete_files.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/commands/delete_files.rs b/src/commands/delete_files.rs
index 3823f57..9a3caed 100644
--- a/src/commands/delete_files.rs
+++ b/src/commands/delete_files.rs
@@ -4,6 +4,7 @@ use std::path;
use crate::commands::{self, JoshutoCommand, JoshutoRunnable};
use crate::config::keymap;
use crate::context::JoshutoContext;
+use crate::preview;
use crate::ui;
#[derive(Clone, Debug)]
@@ -78,6 +79,8 @@ impl JoshutoRunnable for DeleteFiles {
context.config_t.tilde_in_titlebar,
);
}
+ let curr_tab = &mut context.tabs[context.curr_tab_index];
+ preview::preview_file(curr_tab, &context.views, &context.config_t);
ncurses::doupdate();
}
}