From 4605f564165fcd3d9afd3095c2be1e4c5e4c7609 Mon Sep 17 00:00:00 2001 From: Joe Date: Tue, 9 Jan 2024 20:20:20 +0100 Subject: good --- c_litems.go | 1 - 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 -- cgit v1.2.3