From b68894076378cf1c02bb0c5a1c9e6a8cecf8a94c Mon Sep 17 00:00:00 2001 From: Jeremy Wall Date: Mon, 2 Dec 2024 18:20:47 -0500 Subject: [PATCH] feat: ui: Esc cancels the numeric prefix --- src/ui/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ui/mod.rs b/src/ui/mod.rs index 0ecf36d..d3bce65 100644 --- a/src/ui/mod.rs +++ b/src/ui/mod.rs @@ -366,6 +366,9 @@ impl<'ws> Workspace<'ws> { fn handle_navigation_input(&mut self, key: event::KeyEvent) -> Result> { if key.kind == KeyEventKind::Press { match key.code { + KeyCode::Esc => { + self.state.reset_n_prefix(); + } KeyCode::Char(d) if d.is_ascii_digit() => { self.handle_numeric_prefix(d); }