Skip to content

Commit

Permalink
change to false
Browse files Browse the repository at this point in the history
run clippy
  • Loading branch information
nnyyxxxx committed Nov 13, 2024
1 parent ee4f28f commit 563676d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tui/src/running_command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ impl FloatContent for RunningCommand {
}
_ => {}
}
true
false
}
/// Handle key events of the running command "window". Returns true when the "window" should be
/// closed
Expand Down
8 changes: 3 additions & 5 deletions tui/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -509,11 +509,9 @@ impl AppState {
self.focus = Focus::List;
if !self.multi_select {
self.selected_commands.clear()
} else {
if let Some(node) = self.get_selected_node() {
if !node.multi_select {
self.selected_commands.retain(|cmd| cmd.name != node.name);
}
} else if let Some(node) = self.get_selected_node() {
if !node.multi_select {
self.selected_commands.retain(|cmd| cmd.name != node.name);
}
}
}
Expand Down

0 comments on commit 563676d

Please sign in to comment.