ui: add paste input in StatusBar

embed
Manos Pitsidianakis 2019-08-26 19:45:14 +03:00
parent 1328f994f3
commit f72fb069fa
Signed by: Manos Pitsidianakis
GPG Key ID: 73627C2F690DF710
1 changed files with 6 additions and 0 deletions

View File

@ -992,6 +992,12 @@ impl Component for StatusBar {
.process_event(&mut UIEvent::InsertInput(Key::Char(*c)), context);
return true;
}
UIEvent::ExInput(Key::Paste(s)) => {
self.dirty = true;
self.ex_buffer
.process_event(&mut UIEvent::InsertInput(Key::Paste(s.clone())), context);
return true;
}
UIEvent::ExInput(Key::Ctrl('u')) => {
self.dirty = true;
self.ex_buffer.clear();