From 66c6e89f98c1d08cc52f60c896cebe837eae2bfa Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Wed, 3 Apr 2024 19:56:46 +0200 Subject: [PATCH] Don't add collateral sentinel key to input queue This is for bracketed paste and focus reporting where we already add a proper event to the queue. --- src/input_common.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/input_common.rs b/src/input_common.rs index 5c3ec3d85..762d340f4 100644 --- a/src/input_common.rs +++ b/src/input_common.rs @@ -594,6 +594,9 @@ fn readch(&mut self) -> CharEvent { } let mut seq = WString::new(); let mut key = key_with_escape; + if key == Some(Key::from_raw(key::Invalid)) { + continue; + } let mut consumed = 0; for i in 0..buffer.len() { self.parse_codepoint(