aboutsummaryrefslogtreecommitdiffstats
path: root/i_ui.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-01-05 20:20:20 +0100
committerJoe <rbo@gmx.us>2024-01-05 20:20:20 +0100
commitb86e613a96d23e90668b5f9aabd2a38b76c30fa4 (patch)
treeeac72d2b8280203651a74b515a96c12edc891690 /i_ui.go
parentgoogo (diff)
downloadhardflip-b86e613a96d23e90668b5f9aabd2a38b76c30fa4.tar.gz
hardflip-b86e613a96d23e90668b5f9aabd2a38b76c30fa4.tar.bz2
hardflip-b86e613a96d23e90668b5f9aabd2a38b76c30fa4.tar.xz
hardflip-b86e613a96d23e90668b5f9aabd2a38b76c30fa4.tar.zst
hardflip-b86e613a96d23e90668b5f9aabd2a38b76c30fa4.zip
now draw litems list
Diffstat (limited to '')
-rw-r--r--i_ui.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/i_ui.go b/i_ui.go
index ca3cbe4..51ba600 100644
--- a/i_ui.go
+++ b/i_ui.go
@@ -78,7 +78,7 @@ func (ui *HardUI) inc_sel(n int, data *HardData) {
n = 0
}
ui.line += n
- data.sel_unique_id(ui.line)
+ data.litems.curr = data.litems.curr.inc(n)
if ui.line > ui.list_start + ui.dim[H] - 4 {
ui.list_start = (ui.line + 1) - (ui.dim[H] + 3)
} else if ui.line < ui.list_start {
@@ -326,8 +326,8 @@ func i_host_panel(ui HardUI, icons bool, ldirs *DirsList) {
func i_info_panel(ui HardUI, lhost *HostList) {
var host *HostNode
- curr_line := 2
var host_type string
+ curr_line := 2
i_draw_box(ui.s, (ui.dim[W] / 3), 0,
ui.dim[W] - 1, ui.dim[H] - 2,