diff options
author | rabite <rabite@posteo.de> | 2019-02-28 18:43:11 +0100 |
---|---|---|
committer | rabite <rabite@posteo.de> | 2019-02-28 18:48:37 +0100 |
commit | 06817602a8559e8c214c7f68d804ee1d7d9ffd77 (patch) | |
tree | ab3672a6f7f43c478ff8783f4d8a99d5a05e487a /src/tabview.rs | |
parent | fd67621dee25990cca67766865ec3e991b5bf11e (diff) |
view exec'd processes status/output
Diffstat (limited to 'src/tabview.rs')
-rw-r--r-- | src/tabview.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tabview.rs b/src/tabview.rs index 22ef78f..e4904a5 100644 --- a/src/tabview.rs +++ b/src/tabview.rs @@ -2,6 +2,7 @@ use termion::event::Key; use crate::coordinates::{Coordinates}; use crate::widget::Widget; +use crate::fail::HResult; pub trait Tabbable { fn new_tab(&mut self); @@ -129,7 +130,8 @@ impl<T> Widget for TabView<T> where T: Widget, TabView<T>: Tabbable { self.refresh(); } - fn on_key(&mut self, key: Key) { + fn on_key(&mut self, key: Key) -> HResult<()> { Tabbable::on_key(self, key); + Ok(()) } } |