mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-27 16:51:15 -03:00
Fix regression causing \e[ to be interpreted as ctrl-[
Fixes 3201cb9f01 (Stop parsing invalid CSI/SS3 sequences as alt-[/alt-o,
2024-12-30).
This commit is contained in:
@@ -942,7 +942,7 @@ fn parse_csi(&mut self, buffer: &mut Vec<u8>) -> Option<KeyEvent> {
|
||||
// The maximum number of CSI parameters is defined by NPAR, nominally 16.
|
||||
let mut params = [[0_u32; 4]; 16];
|
||||
let Some(mut c) = self.try_readb(buffer) else {
|
||||
return Some(KeyEvent::from(ctrl('[')));
|
||||
return Some(KeyEvent::from(alt('[')));
|
||||
};
|
||||
let mut next_char = |zelf: &mut Self| zelf.try_readb(buffer).unwrap_or(0xff);
|
||||
let private_mode;
|
||||
|
||||
Reference in New Issue
Block a user