Fix off-by-one-error parsing \e\e prefixed sequences

Closes #10721
This commit is contained in:
Johannes Altmanninger 2024-09-14 22:42:57 +02:00
parent a6c8cd6e85
commit 1e2368f609

View File

@ -696,7 +696,7 @@ pub trait InputEventQueuer {
}
return None;
};
if buffer.len() == 1 && next == b'\x1b' {
if buffer.len() == 2 && next == b'\x1b' {
return Some(
match self.parse_escape_sequence(buffer, have_escape_prefix) {
Some(mut nested_sequence) => {