mirror of
https://github.com/sayanarijit/xplr
synced 2024-11-04 18:00:14 +00:00
Improve update_input_buffer
This commit is contained in:
parent
074217f21e
commit
b0c91a954e
@ -1919,12 +1919,14 @@ impl App {
|
||||
fn update_input_buffer(mut self, op: InputOperation) -> Result<Self> {
|
||||
if let Some(buf) = self.input.as_mut() {
|
||||
buf.handle(op.into());
|
||||
self.logs_hidden = true;
|
||||
} else {
|
||||
let mut buf = Input::default();
|
||||
buf.handle(op.into());
|
||||
self.input = Some(buf);
|
||||
if buf.handle(op.into()).is_some() {
|
||||
self.input = Some(buf);
|
||||
self.logs_hidden = true;
|
||||
}
|
||||
}
|
||||
self.logs_hidden = true;
|
||||
Ok(self)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user