diff options
author | Joe <rbo@gmx.us> | 2024-01-05 20:20:20 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-01-05 20:20:20 +0100 |
commit | 1844f8bae695fc677062fb06db012a4102cd3f0a (patch) | |
tree | 342992624a99bbc05b942d35e955c3be4cfd4b91 /i_events.go | |
parent | now draw litems list (diff) | |
download | hardflip-1844f8bae695fc677062fb06db012a4102cd3f0a.tar.gz hardflip-1844f8bae695fc677062fb06db012a4102cd3f0a.tar.bz2 hardflip-1844f8bae695fc677062fb06db012a4102cd3f0a.tar.xz hardflip-1844f8bae695fc677062fb06db012a4102cd3f0a.tar.zst hardflip-1844f8bae695fc677062fb06db012a4102cd3f0a.zip |
now really draw
Diffstat (limited to 'i_events.go')
-rw-r--r-- | i_events.go | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/i_events.go b/i_events.go index 3afbac0..9d86366 100644 --- a/i_events.go +++ b/i_events.go @@ -98,18 +98,20 @@ func i_events(data *HardData) { os.Exit(0) } else if event.Rune() == 'j' || event.Key() == tcell.KeyDown { - if ui.line < ui.sel_max - 1 { + if ui.sel_id < ui.sel_max - 1 { ui.inc_sel(1, data) } } else if event.Rune() == 'k' || event.Key() == tcell.KeyUp { - if ui.line > 0 { + if ui.sel_id > 0 { ui.inc_sel(-1, data) } } else if event.Rune() == 'g' { - ui.line = 0 + // TODO: litems.curr + ui.sel_id = 0 } else if event.Rune() == 'G' { - ui.line = ui.sel_max - 1 + // TODO: litems.curr + ui.sel_id = ui.sel_max - 1 } else if event.Rune() == 'D' && data.ldirs.head != nil && ui.sel_max != 0 { |