Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes committed Dec 2, 2023
1 parent dd33131 commit 52e0a38
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions crates/debugger/src/tui/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,13 +248,9 @@ impl DebuggerContext<'_> {
KeyCode::Char('m') => self.mem_utf = !self.mem_utf,
// toggle help notice
KeyCode::Char('h') => self.show_shortcuts = !self.show_shortcuts,
KeyCode::Char(other) => match other {
'0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '\'' => {
self.key_buffer.push(other);
}
// Invalid key, clear buffer
_ => self.key_buffer.clear(),
},
KeyCode::Char(
other @ ('0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '\''),
) => self.key_buffer.push(other),
_ => self.key_buffer.clear(),
};

Expand Down

0 comments on commit 52e0a38

Please sign in to comment.