From 7184be49fe0dbaf62a53ebd56ac5a830c9fb6abf Mon Sep 17 00:00:00 2001 From: akbash Date: Sat, 26 Sep 2026 02:20:08 +0300 Subject: fix: retain mouse input grace for split csi prefixes (#4636) refs #4630 Co-authored-by: akbash-bot <300245827+akbash-bot@users.noreply.github.com> --- src/raw_input.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/raw_input.rs') diff --git a/src/raw_input.rs b/src/raw_input.rs index cfbcba62..b2c3beda 100644 --- a/src/raw_input.rs +++ b/src/raw_input.rs @@ -229,6 +229,11 @@ impl RawInputByteFramer { self.buffer.as_slice() == [ESC] } + #[cfg(unix)] + pub(crate) fn has_pending_csi_introducer(&self) -> bool { + self.buffer.as_slice() == b"\x1b[" + } + #[cfg(unix)] pub(crate) fn has_pending_incomplete_mouse_sequence(&self) -> bool { starts_with_incomplete_sgr_mouse_sequence(&self.buffer) -- cgit v1.2.3