aboutsummaryrefslogtreecommitdiffstats
path: root/i_events.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-01-04 20:20:20 +0100
committerJoe <rbo@gmx.us>2024-01-04 20:20:20 +0100
commit303764a80bf0e4a79a463d2dd41b7baad6c38038 (patch)
tree21a2e67b3e7c274a7ccdce329187140f80c5eb35 /i_events.go
parentworks for now (diff)
downloadhardflip-303764a80bf0e4a79a463d2dd41b7baad6c38038.tar.gz
hardflip-303764a80bf0e4a79a463d2dd41b7baad6c38038.tar.bz2
hardflip-303764a80bf0e4a79a463d2dd41b7baad6c38038.tar.xz
hardflip-303764a80bf0e4a79a463d2dd41b7baad6c38038.tar.zst
hardflip-303764a80bf0e4a79a463d2dd41b7baad6c38038.zip
awy
Diffstat (limited to '')
-rw-r--r--i_events.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/i_events.go b/i_events.go
index 7f585de..614ef94 100644
--- a/i_events.go
+++ b/i_events.go
@@ -98,12 +98,12 @@ func i_events(data *HardData) {
} else if event.Rune() == 'j' ||
event.Key() == tcell.KeyDown {
if ui.line < ui.sel_max - 1 {
- ui.inc_sel(1)
+ ui.inc_sel(1, data)
}
} else if event.Rune() == 'k' ||
event.Key() == tcell.KeyUp {
if ui.line > 0 {
- ui.inc_sel(-1)
+ ui.inc_sel(-1, data)
}
} else if event.Rune() == 'g' {
ui.line = 0