summaryrefslogtreecommitdiff
path: root/ui/ui.go
diff options
context:
space:
mode:
authorHubert Hirtz <hubert@hirtzfr.eu>2020-08-10 10:35:22 +0200
committerHubert Hirtz <hubert@hirtzfr.eu>2020-08-10 10:43:09 +0200
commit54b100869a7473716b3f0146053b8f4fe9898fe1 (patch)
tree38defd77511d4b3e8e11ce241b8e54cf21428bb6 /ui/ui.go
parentActually 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.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/ui/ui.go b/ui/ui.go
index 9ea1381..cf87a78 100644
--- a/ui/ui.go
+++ b/ui/ui.go
@@ -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 {