Skip to content

Commit

Permalink
Single command execution bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jeevithakannan2 committed Sep 11, 2024
1 parent 8067b80 commit 3d2e5c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/hint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
7 changes: 3 additions & 4 deletions src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 3d2e5c9

Please sign in to comment.