summaryrefslogtreecommitdiffstats
path: root/src/history.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-11-17 21:45:25 -0500
committerJesse Luehrs <doy@tozt.net>2021-11-17 21:45:25 -0500
commit26bb4e54e9669b487817d09ebfa36836293d741d (patch)
treedfdedab0e497c3e62a900ca0e4ba94380bed67bd /src/history.rs
parent35cdb6a27e25504f6eb368d48f1007085883635c (diff)
downloadnbsh-26bb4e54e9669b487817d09ebfa36836293d741d.tar.gz
nbsh-26bb4e54e9669b487817d09ebfa36836293d741d.zip
make action handling the main task
Diffstat (limited to 'src/history.rs')
-rw-r--r--src/history.rs7
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(