Fix issue with input buffer

This commit is contained in:
Arijit Basu 2021-11-05 18:00:38 +05:30 committed by Arijit Basu
parent 48ab6eac21
commit 074217f21e

View File

@ -1919,7 +1919,12 @@ impl App {
fn update_input_buffer(mut self, op: InputOperation) -> Result<Self> {
if let Some(buf) = self.input.as_mut() {
buf.handle(op.into());
} else {
let mut buf = Input::default();
buf.handle(op.into());
self.input = Some(buf);
}
self.logs_hidden = true;
Ok(self)
}