aboutsummaryrefslogtreecommitdiff
path: root/src/raw_input.rs
diff options
context:
space:
mode:
authorakbash <akbash@herdr.dev>2026-09-26 02:20:08 +0300
committerGitHub <noreply@github.com>2026-09-26 01:20:08 +0200
commit7184be49fe0dbaf62a53ebd56ac5a830c9fb6abf (patch)
treebc195c9b3f3f61b3933d3fba71126e042d6e17bd /src/raw_input.rs
parent21d0ce60267ad947c081d3d3fba401c859f06dd2 (diff)
fix: retain mouse input grace for split csi prefixes (#4636)
refs #4630 Co-authored-by: akbash-bot <300245827+akbash-bot@users.noreply.github.com>
Diffstat (limited to 'src/raw_input.rs')
-rw-r--r--src/raw_input.rs5
1 files changed, 5 insertions, 0 deletions
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
@@ -230,6 +230,11 @@ impl RawInputByteFramer {
}
#[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)
|| starts_with_incomplete_default_mouse_sequence(&self.buffer)