diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-11-17 21:45:25 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-11-17 21:45:25 -0500 |
commit | 26bb4e54e9669b487817d09ebfa36836293d741d (patch) | |
tree | dfdedab0e497c3e62a900ca0e4ba94380bed67bd /src/history.rs | |
parent | 35cdb6a27e25504f6eb368d48f1007085883635c (diff) | |
download | nbsh-26bb4e54e9669b487817d09ebfa36836293d741d.tar.gz nbsh-26bb4e54e9669b487817d09ebfa36836293d741d.zip |
make action handling the main task
Diffstat (limited to 'src/history.rs')
-rw-r--r-- | src/history.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/history.rs b/src/history.rs index 3c15625..8549ab7 100644 --- a/src/history.rs +++ b/src/history.rs @@ -122,16 +122,11 @@ impl History { Ok(self.entries.len() - 1) } - pub async fn handle_key( - &mut self, - key: textmode::Key, - idx: usize, - ) -> bool { + pub async fn handle_key(&mut self, key: textmode::Key, idx: usize) { let entry = self.entries[idx].lock_arc().await; if entry.running() { entry.input.send(key.into_bytes()).await.unwrap(); } - false } pub async fn render( |