diff options
author | Joe <rbo@gmx.us> | 2024-01-08 20:20:20 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-01-08 20:20:20 +0100 |
commit | c09fc2a3171420e0b7ddfc14f7898f91d2f52799 (patch) | |
tree | d30443491bdff09616de3833c9711ff60f0fbce6 | |
parent | cool (diff) | |
download | hardflip-c09fc2a3171420e0b7ddfc14f7898f91d2f52799.tar.gz hardflip-c09fc2a3171420e0b7ddfc14f7898f91d2f52799.tar.bz2 hardflip-c09fc2a3171420e0b7ddfc14f7898f91d2f52799.tar.xz hardflip-c09fc2a3171420e0b7ddfc14f7898f91d2f52799.tar.zst hardflip-c09fc2a3171420e0b7ddfc14f7898f91d2f52799.zip |
ok good
Diffstat (limited to '')
-rw-r--r-- | i_events.go | 8 | ||||
-rw-r--r-- | i_ui.go | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/i_events.go b/i_events.go index 9d5adce..8f1601b 100644 --- a/i_events.go +++ b/i_events.go @@ -97,14 +97,14 @@ func i_events(data *HardData) { os.Exit(0) } else if event.Rune() == 'j' || event.Key() == tcell.KeyDown { - ui.inc_sel(+1, data) + ui.inc_cursor(+1, data) } else if event.Rune() == 'k' || event.Key() == tcell.KeyUp { - ui.inc_sel(-1, data) + ui.inc_cursor(-1, data) } else if event.Key() == tcell.KeyCtrlD { - ui.inc_sel(+(ui.dim[H] / 4), data) + ui.inc_cursor(+(ui.dim[H] / 4), data) } else if event.Key() == tcell.KeyCtrlU { - ui.inc_sel(-(ui.dim[H] / 4), data) + ui.inc_cursor(-(ui.dim[H] / 4), data) } else if event.Rune() == 'g' { data.litems.curr = data.litems.head } else if event.Rune() == 'G' { @@ -71,7 +71,7 @@ type HardUI struct { dim [2]int } -func (ui *HardUI) inc_sel(n int, data *HardData) { +func (ui *HardUI) inc_cursor(n int, data *HardData) { if data.litems.curr == nil { return } |