From 15e874a069d24e1ac3a1684ba3291dc727f9314f Mon Sep 17 00:00:00 2001 From: Huy Tran Date: Fri, 31 May 2024 23:26:49 -0700 Subject: [PATCH] fix: Decide when to send backspace based on display buffer not typing buffer Fixes #117 --- src/input.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input.rs b/src/input.rs index 5383f2d..7b453ea 100644 --- a/src/input.rs +++ b/src/input.rs @@ -360,7 +360,7 @@ impl InputState { } pub fn should_send_keyboard_event(&self, word: &str) -> bool { - !self.buffer.eq(word) + !self.display_buffer.eq(word) } pub fn should_dismiss_selection_if_needed(&self) -> bool {