From 3d2e5c90eae7fe0e1c8a5f827a2979369a230d87 Mon Sep 17 00:00:00 2001 From: JEEVITHA KANNAN K S Date: Wed, 11 Sep 2024 10:12:19 +0530 Subject: [PATCH] Single command execution bug fix --- src/hint.rs | 2 +- src/state.rs | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/hint.rs b/src/hint.rs index 7dabd71c5..76e2e9eab 100644 --- a/src/hint.rs +++ b/src/hint.rs @@ -140,7 +140,7 @@ pub fn draw_shortcuts(state: &AppState, frame: &mut Frame, area: Rect) { hints.push(Shortcut::new(vec!["t"], "Next theme")); hints.push(Shortcut::new(vec!["T"], "Previous theme")); if state.is_current_tab_multi_selectable() { - hints.push(Shortcut::new(vec!["v", "V"], "Toggle Multi selection")); + hints.push(Shortcut::new(vec!["v"], "Toggle Multi selection")); hints.push(Shortcut::new(vec!["Space"], "Multi select commands")); } ShortcutList { diff --git a/src/state.rs b/src/state.rs index 0bd9865bb..f18c3878b 100644 --- a/src/state.rs +++ b/src/state.rs @@ -401,11 +401,10 @@ impl AppState { if let Some(cmd) = self.get_selected_command() { if self.selected_commands.is_empty() { self.selected_commands.push(cmd); - } else { - let command = RunningCommand::new(self.selected_commands.clone()); - self.spawn_float(command, 80, 80); - self.selected_commands.clear(); } + let command = RunningCommand::new(self.selected_commands.clone()); + self.spawn_float(command, 80, 80); + self.selected_commands.clear(); } else { self.go_to_selected_dir(); }