From cb445d32cf678ba4971ce8c41ed252c1eeb27562 Mon Sep 17 00:00:00 2001 From: Joe Date: Mon, 15 Jan 2024 20:20:20 +0100 Subject: fuck sel_max --- i_ui.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'i_ui.go') diff --git a/i_ui.go b/i_ui.go index 2177ce3..c3e1793 100644 --- a/i_ui.go +++ b/i_ui.go @@ -62,7 +62,6 @@ type HardUI struct { mode uint8 // HACK: fuck sel_max // HACK: lists ids might be shit too - sel_max int def_style tcell.Style dir_style tcell.Style title_style tcell.Style @@ -305,12 +304,12 @@ func i_host_panel(ui HardUI, icons bool, litems *ItemsList, data *HardData) { line++ } } - if litems.head == nil { + if litems.head != nil { i_draw_text(ui.s, 1, ui.dim[H] - 2, (ui.dim[W] / 3) - 1, ui.dim[H] - 2, ui.def_style, " " + strconv.Itoa(litems.curr.ID) + "/" + - strconv.Itoa(int(ui.sel_max)) + " items ") + strconv.Itoa(int(litems.last.ID)) + " items ") } else { i_draw_text(ui.s, 1, ui.dim[H] - 2, (ui.dim[W] / 3) - 1, ui.dim[H] - 2, -- cgit v1.2.3