fish_key_reader: ignore sentinel key

Also, move the undo grouping for paste to the right place.
This commit is contained in:
Johannes Altmanninger
2024-04-02 16:24:37 +02:00
parent 8bf8b10f68
commit e8e91c97a6
4 changed files with 7 additions and 4 deletions

View File

@@ -869,11 +869,9 @@ fn parse_csi(&mut self, buffer: &mut Vec<u8>) -> Option<Key> {
} // rxvt style
200 => {
self.paste_start_buffering();
self.push_front(CharEvent::from_readline(ReadlineCmd::BeginUndoGroup));
return Some(Key::from_raw(key::Invalid));
}
201 => {
self.push_front(CharEvent::from_readline(ReadlineCmd::EndUndoGroup));
self.paste_commit();
return Some(Key::from_raw(key::Invalid));
}