aboutsummaryrefslogtreecommitdiffstats
path: root/i_info.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-01-19 20:20:20 +0100
committerJoe <rbo@gmx.us>2024-01-19 20:20:20 +0100
commitb42e73a6d4db31ca6b68f4b6d3a7cea75552ec5e (patch)
tree2b7cee6bd6b1f3e9f938f9241a9666c09cc5a14f /i_info.go
parentmsg mode (diff)
downloadhardflip-b42e73a6d4db31ca6b68f4b6d3a7cea75552ec5e.tar.gz
hardflip-b42e73a6d4db31ca6b68f4b6d3a7cea75552ec5e.tar.bz2
hardflip-b42e73a6d4db31ca6b68f4b6d3a7cea75552ec5e.tar.xz
hardflip-b42e73a6d4db31ca6b68f4b6d3a7cea75552ec5e.tar.zst
hardflip-b42e73a6d4db31ca6b68f4b6d3a7cea75552ec5e.zip
cool
Diffstat (limited to 'i_info.go')
-rw-r--r--i_info.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/i_info.go b/i_info.go
index 8b5ccd6..271f1d0 100644
--- a/i_info.go
+++ b/i_info.go
@@ -43,7 +43,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*
* hardflip: src/i_info.go
- * Fri Jan 19 12:48:40 2024
+ * Fri Jan 19 18:44:13 2024
* Joe
*
* interfacing informations about items
@@ -304,6 +304,9 @@ func i_draw_info_panel(ui HardUI, percent bool, litems *ItemsList) {
ui.s.SetContent(ui.dim[W] / 3, 0, tcell.RuneTTee, nil, ui.def_style)
ui.s.SetContent(ui.dim[W] / 3, ui.dim[H] - 2,
tcell.RuneBTee, nil, ui.def_style)
+ if litems == nil {
+ return
+ }
// number display
if litems.head != nil {
text := " " + strconv.Itoa(litems.curr.ID) + " of " +