summaryrefslogtreecommitdiffstats
path: root/src/commands/delete_files.rs
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2019-04-25 07:49:55 -0400
committerJiayi Zhao <jeff.no.zhao@gmail.com>2019-04-25 07:49:55 -0400
commite0c3777930f87691eb8ade05c81764f9b2ae15b4 (patch)
tree64d762edd61e225e1c1f11a403fc961eedcde631 /src/commands/delete_files.rs
parent2be79f4cd0ee0e89c5cadf5121a8b979391d0d51 (diff)
refactor previewing
- remove dependency on preview.rs in commands/ - now can just call tab.refresh_preview to update the preview
Diffstat (limited to 'src/commands/delete_files.rs')
-rw-r--r--src/commands/delete_files.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/commands/delete_files.rs b/src/commands/delete_files.rs
index e8d688a..2ac8ca6 100644
--- a/src/commands/delete_files.rs
+++ b/src/commands/delete_files.rs
@@ -5,7 +5,6 @@ use crate::commands::{JoshutoCommand, JoshutoRunnable};
use crate::config::keymap;
use crate::context::JoshutoContext;
use crate::error::JoshutoError;
-use crate::preview;
use crate::ui;
use crate::window::JoshutoView;
@@ -62,7 +61,6 @@ impl DeleteFiles {
context.config_t.tilde_in_titlebar,
);
}
- preview::preview_file(curr_tab, &view, &context.config_t);
ncurses::doupdate();
Ok(())
}