diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-12-10 02:05:05 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-12-10 02:05:05 -0500 |
commit | 1729d8988a12a097859697f6a9d8041f3a9763fa (patch) | |
tree | ac90984ec630c1597119aee4582ba7b60986487a /src/readline.rs | |
parent | 321549c05e47c322998edba05a52d16a722f17a7 (diff) | |
download | nbsh-1729d8988a12a097859697f6a9d8041f3a9763fa.tar.gz nbsh-1729d8988a12a097859697f6a9d8041f3a9763fa.zip |
make up and down work
Diffstat (limited to 'src/readline.rs')
-rw-r--r-- | src/readline.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/readline.rs b/src/readline.rs index 0bb304c..eba2a4e 100644 --- a/src/readline.rs +++ b/src/readline.rs @@ -41,6 +41,11 @@ impl Readline { textmode::Key::Backspace => self.backspace(), textmode::Key::Left => self.cursor_left(), textmode::Key::Right => self.cursor_right(), + textmode::Key::Up => { + return Some(crate::action::Action::UpdateFocus( + crate::state::Focus::Scrolling(Some(usize::MAX)), + )) + } _ => {} } Some(crate::action::Action::Render) |