summaryrefslogtreecommitdiffstats
path: root/src/state.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-12-10 22:50:07 -0500
committerJesse Luehrs <doy@tozt.net>2021-12-10 22:50:07 -0500
commit58979a8db547a1083778951d6376a27930006cbc (patch)
tree3712cde9997a2479a2aae5ad071d839d43954c27 /src/state.rs
parent75774fa13f9dbd02838a3e0984bd4d0dfbaca9d8 (diff)
downloadnbsh-58979a8db547a1083778951d6376a27930006cbc.tar.gz
nbsh-58979a8db547a1083778951d6376a27930006cbc.zip
change passthrough to ^E+e
Diffstat (limited to 'src/state.rs')
-rw-r--r--src/state.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/state.rs b/src/state.rs
index bf8d0a0..5cc18f3 100644
--- a/src/state.rs
+++ b/src/state.rs
@@ -54,9 +54,11 @@ impl State {
key: textmode::Key,
) -> Option<crate::action::Action> {
match key {
- textmode::Key::Ctrl(b'e') => {
+ textmode::Key::Char('e') => {
if let crate::action::Focus::History(idx) = self.focus {
- self.history.handle_key(key, idx).await;
+ self.history
+ .handle_key(textmode::Key::Ctrl(b'e'), idx)
+ .await;
}
None
}