diff options
author | Joe <rbo@gmx.us> | 2024-01-19 20:20:20 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-01-19 20:20:20 +0100 |
commit | b42e73a6d4db31ca6b68f4b6d3a7cea75552ec5e (patch) | |
tree | 2b7cee6bd6b1f3e9f938f9241a9666c09cc5a14f /i_host.go | |
parent | msg mode (diff) | |
download | hardflip-b42e73a6d4db31ca6b68f4b6d3a7cea75552ec5e.tar.gz hardflip-b42e73a6d4db31ca6b68f4b6d3a7cea75552ec5e.tar.bz2 hardflip-b42e73a6d4db31ca6b68f4b6d3a7cea75552ec5e.tar.xz hardflip-b42e73a6d4db31ca6b68f4b6d3a7cea75552ec5e.tar.zst hardflip-b42e73a6d4db31ca6b68f4b6d3a7cea75552ec5e.zip |
cool
Diffstat (limited to '')
-rw-r--r-- | i_host.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -43,7 +43,7 @@ * POSSIBILITY OF SUCH DAMAGE. * * hardflip: src/i_host.go - * Fri Jan 19 12:52:11 2024 + * Fri Jan 19 18:44:09 2024 * Joe * * interfacing hosts @@ -104,7 +104,7 @@ func i_draw_host_panel(ui HardUI, icons bool, litems *ItemsList, data *HardData) ui.dim[W] / 3, ui.dim[H] - 2, " Hosts ", false) line := 1 - if litems.head == nil { + if litems == nil || litems.head == nil { return } for ptr := litems.draw; ptr != nil && line < ui.dim[H] - 2; ptr = ptr.next { |