diff options
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 } |