Skip to content

Commit

Permalink
fix: Decide when to send backspace based on display buffer not typing…
Browse files Browse the repository at this point in the history
… buffer

Fixes #117
  • Loading branch information
huytd committed Jun 1, 2024
1 parent 69042f5 commit 15e874a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 15e874a

Please sign in to comment.