mirror of
https://github.com/sayanarijit/xplr
synced 2024-11-10 07:10:45 +00:00
Fix issue with input buffer
This commit is contained in:
parent
48ab6eac21
commit
074217f21e
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user