From f4bdd7da139d35df5ef943c117f8160055a67859 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/state.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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(); }