aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-01-08 20:20:20 +0100
committerJoe <rbo@gmx.us>2024-01-08 20:20:20 +0100
commitc09fc2a3171420e0b7ddfc14f7898f91d2f52799 (patch)
treed30443491bdff09616de3833c9711ff60f0fbce6
parentcool (diff)
downloadhardflip-c09fc2a3171420e0b7ddfc14f7898f91d2f52799.tar.gz
hardflip-c09fc2a3171420e0b7ddfc14f7898f91d2f52799.tar.bz2
hardflip-c09fc2a3171420e0b7ddfc14f7898f91d2f52799.tar.xz
hardflip-c09fc2a3171420e0b7ddfc14f7898f91d2f52799.tar.zst
hardflip-c09fc2a3171420e0b7ddfc14f7898f91d2f52799.zip
ok good
-rw-r--r--i_events.go8
-rw-r--r--i_ui.go2
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' {
diff --git a/i_ui.go b/i_ui.go
index 3473245..5cc5e5f 100644
--- a/i_ui.go
+++ b/i_ui.go
@@ -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
}