Skip to content

Commit

Permalink
fix: breakpoint handling
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes committed Dec 4, 2023
1 parent 71f846b commit c4338c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/debugger/src/tui/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ impl DebuggerContext<'_> {

fn handle_key_event(&mut self, event: KeyEvent) -> ControlFlow<ExitReason> {
if let KeyCode::Char(c) = event.code {
if c.is_alphanumeric() || c == '\'' {
if c.is_alphabetic() && self.key_buffer.starts_with('\'') {
self.handle_breakpoint(c);
return ControlFlow::Continue(());
}
Expand Down

0 comments on commit c4338c4

Please sign in to comment.