From 9d839c8f420c4e737c9f724b5a39eab03e10de43 Mon Sep 17 00:00:00 2001 From: Mark Date: Mon, 28 Aug 2023 01:10:53 +0200 Subject: [PATCH] fixed bug where Focus would be ignored for the M hotkey --- src/run.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/run.rs b/src/run.rs index 8019ee0..fcd6731 100755 --- a/src/run.rs +++ b/src/run.rs @@ -697,7 +697,7 @@ impl TuiFile { self.updates.request_move_cursor(); } // M -> toggle threaded mode based on searchbar - (_, KeyCode::Char('m')) => { + (Focus::Files, KeyCode::Char('m')) => { self.updates.request_reset_search(); self.updates.request_redraw_filebar(); if self.search_text == "b" { @@ -742,6 +742,7 @@ impl TuiFile { .filter(|e| e.selected) .map(|e| e.path.clone()) .collect(); + self.updates.request_redraw_infobar(); tasks::task_del(paths, share); } // P -> Permissions