diff options
author | Joe <rbo@gmx.us> | 2024-01-15 20:20:20 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-01-15 20:20:20 +0100 |
commit | cb445d32cf678ba4971ce8c41ed252c1eeb27562 (patch) | |
tree | c8119c664f6e51cd2770525a02c71d4fdb7430db /i_ui.go | |
parent | delete boy (diff) | |
download | hardflip-cb445d32cf678ba4971ce8c41ed252c1eeb27562.tar.gz hardflip-cb445d32cf678ba4971ce8c41ed252c1eeb27562.tar.bz2 hardflip-cb445d32cf678ba4971ce8c41ed252c1eeb27562.tar.xz hardflip-cb445d32cf678ba4971ce8c41ed252c1eeb27562.tar.zst hardflip-cb445d32cf678ba4971ce8c41ed252c1eeb27562.zip |
fuck sel_max
Diffstat (limited to '')
-rw-r--r-- | i_ui.go | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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, |