diff options
| author | Hubert Hirtz <hubert@hirtzfr.eu> | 2020-08-10 10:35:22 +0200 |
|---|---|---|
| committer | Hubert Hirtz <hubert@hirtzfr.eu> | 2020-08-10 10:43:09 +0200 |
| commit | 54b100869a7473716b3f0146053b8f4fe9898fe1 (patch) | |
| tree | 38defd77511d4b3e8e11ce241b8e54cf21428bb6 /ui/ui.go | |
| parent | Actually the rune width issue is from alacritty (diff) | |
editor: Handle UP and DOWN keys
Diffstat (limited to 'ui/ui.go')
| -rw-r--r-- | ui/ui.go | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -166,6 +166,16 @@ func (ui *UI) InputEnd() { ui.draw() } +func (ui *UI) InputUp() { + ui.e.Up() + ui.draw() +} + +func (ui *UI) InputDown() { + ui.e.Down() + ui.draw() +} + func (ui *UI) InputBackspace() (ok bool) { ok = ui.e.RemRune() if ok { |
