summaryrefslogtreecommitdiffstats
path: root/src/minibuffer.rs
diff options
context:
space:
mode:
authorrabite <rabite@posteo.de>2019-02-28 18:43:11 +0100
committerrabite <rabite@posteo.de>2019-02-28 18:48:37 +0100
commit06817602a8559e8c214c7f68d804ee1d7d9ffd77 (patch)
treeab3672a6f7f43c478ff8783f4d8a99d5a05e487a /src/minibuffer.rs
parentfd67621dee25990cca67766865ec3e991b5bf11e (diff)
view exec'd processes status/output
Diffstat (limited to 'src/minibuffer.rs')
-rw-r--r--src/minibuffer.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/minibuffer.rs b/src/minibuffer.rs
index 8c45bd0..f48d84c 100644
--- a/src/minibuffer.rs
+++ b/src/minibuffer.rs
@@ -145,7 +145,7 @@ impl Widget for MiniBuffer {
self.input)
}
- fn on_key(&mut self, key: Key) {
+ fn on_key(&mut self, key: Key) -> HResult<()> {
match key {
Key::Esc | Key::Ctrl('c') => { self.input.clear(); self.done = true; },
Key::Char('\n') => {
@@ -205,7 +205,8 @@ impl Widget for MiniBuffer {
self.input.insert(self.position, key);
self.position += 1;
}
- _ => {}
+ _ => { }
}
+ Ok(())
}
}