diff options
Diffstat (limited to '')
-rw-r--r-- | i_events.go | 8 | ||||
-rw-r--r-- | i_ui.go | 4 |
2 files changed, 9 insertions, 3 deletions
diff --git a/i_events.go b/i_events.go index 524b612..74dbe06 100644 --- a/i_events.go +++ b/i_events.go @@ -39,7 +39,7 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * hardflip: src/i_events.go - * Wed Dec 20 12:19:56 2023 + * Wed Dec 20 16:17:19 2023 * Joe * * the hosts linked list @@ -98,6 +98,12 @@ func i_events(data *Data, *sel -= 1 } } + if event.Rune() == 'g' { + *sel = 0 + } + if event.Rune() == 'G' { + *sel = *sel_max - 1 + } if event.Rune() == 'D' { i_delete_selected(data, sel) i_reload_data(data, sel, sel_max) @@ -384,8 +384,8 @@ func i_ui(data *Data) { } data.s.Show() i_events(data, &sel, &sel_max, &term_size) - if int(sel) > term_size[H] - 6 { - data.list_start += 1 + if int(sel) > term_size[H] - 4 { + // data.list_start = data.list } } } |