summaryrefslogtreecommitdiffstats
path: root/src/commands/delete_files.rs
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2019-04-25 08:41:39 -0400
committerJiayi Zhao <jeff.no.zhao@gmail.com>2019-04-25 08:42:09 -0400
commite411fc0be674ff01b614802a1e706071593c6647 (patch)
treeaf6175466c9c739266539b45fae5d1b264522e78 /src/commands/delete_files.rs
parentd41770f76a9d19c9df7fd44e971c636eb1c23e1e (diff)
rework how previewing works
- should be more extensible now
Diffstat (limited to 'src/commands/delete_files.rs')
-rw-r--r--src/commands/delete_files.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/commands/delete_files.rs b/src/commands/delete_files.rs
index 2ac8ca6..7850b51 100644
--- a/src/commands/delete_files.rs
+++ b/src/commands/delete_files.rs
@@ -32,7 +32,10 @@ impl DeleteFiles {
Ok(())
}
- fn delete_files(context: &mut JoshutoContext, view: &JoshutoView) -> Result<(), std::io::Error> {
+ fn delete_files(
+ context: &mut JoshutoContext,
+ view: &JoshutoView,
+ ) -> Result<(), std::io::Error> {
ui::wprint_msg(&view.bot_win, "Delete selected files? (Y/n)");
ncurses::timeout(-1);
ncurses::doupdate();