diff options
author | Joe <rbo@gmx.us> | 2024-01-09 20:20:20 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-01-09 20:20:20 +0100 |
commit | 4605f564165fcd3d9afd3095c2be1e4c5e4c7609 (patch) | |
tree | 8d7d08c16ec789aa7cd3272fd560792ce13b9ab6 | |
parent | fix (diff) | |
download | hardflip-4605f564165fcd3d9afd3095c2be1e4c5e4c7609.tar.gz hardflip-4605f564165fcd3d9afd3095c2be1e4c5e4c7609.tar.bz2 hardflip-4605f564165fcd3d9afd3095c2be1e4c5e4c7609.tar.xz hardflip-4605f564165fcd3d9afd3095c2be1e4c5e4c7609.tar.zst hardflip-4605f564165fcd3d9afd3095c2be1e4c5e4c7609.zip |
good
Diffstat (limited to '')
-rw-r--r-- | c_litems.go | 1 | ||||
-rw-r--r-- | i_events.go | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/c_litems.go b/c_litems.go index 5640b5e..e1fef34 100644 --- a/c_litems.go +++ b/c_litems.go @@ -181,7 +181,6 @@ func (litems *ItemsList) inc(jump int) { return } litems.curr = new_item - // FIX: still will select the last } func (item *ItemsNode) folded_parents() bool { diff --git a/i_events.go b/i_events.go index 9989d2a..4da2b3d 100644 --- a/i_events.go +++ b/i_events.go @@ -133,9 +133,9 @@ func i_events(data *HardData) { event.Key() == tcell.KeyUp { data.litems.inc(-1) } else if event.Key() == tcell.KeyCtrlD { - data.litems.inc(+(ui.dim[H] / 3)) + data.litems.inc(+1000 + (ui.dim[H] / 3)) } else if event.Key() == tcell.KeyCtrlU { - data.litems.inc(-(ui.dim[H] / 3)) + data.litems.inc(-1000 - (ui.dim[H] / 3)) } else if event.Rune() == 'g' { data.litems.curr = data.litems.head data.litems.draw_start = data.litems.head |