StatusBar: recognize readline shortcuts in Execute mode

memfd
Manos Pitsidianakis 2020-05-16 17:32:30 +03:00
parent 3ce4772251
commit 7990b71c19
Signed by: Manos Pitsidianakis
GPG Key ID: 73627C2F690DF710
1 changed files with 6 additions and 6 deletions

View File

@ -1248,12 +1248,6 @@ impl Component for StatusBar {
self.ex_buffer_cmd_history_pos.take();
return true;
}
UIEvent::ExInput(k @ Key::Backspace) | UIEvent::ExInput(k @ Key::Ctrl('h')) => {
self.dirty = true;
self.ex_buffer
.process_event(&mut UIEvent::InsertInput(k.clone()), context);
return true;
}
UIEvent::ExInput(Key::Up) => {
self.auto_complete.dec_cursor();
self.dirty = true;
@ -1323,6 +1317,12 @@ impl Component for StatusBar {
return true;
}
UIEvent::ExInput(k @ Key::Backspace) | UIEvent::ExInput(k @ Key::Ctrl(_)) => {
self.dirty = true;
self.ex_buffer
.process_event(&mut UIEvent::InsertInput(k.clone()), context);
return true;
}
UIEvent::Resize => {
self.dirty = true;
}