Fix issue with input buffer

pull/405/head
Arijit Basu 3 years ago committed by Arijit Basu
parent 48ab6eac21
commit 074217f21e

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

Loading…
Cancel
Save