From c6e75bad095ca01f39307faf0739cc52cca8e691 Mon Sep 17 00:00:00 2001 From: Joe Date: Thu, 4 Jan 2024 20:20:20 +0100 Subject: works for now --- c_hardflip.go | 5 ++--- i_ui.go | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/c_hardflip.go b/c_hardflip.go index 9451056..2e6dd5c 100644 --- a/c_hardflip.go +++ b/c_hardflip.go @@ -72,10 +72,9 @@ type HardData struct { func c_reset_ptr(data *HardData) { if data.ptr = data.ldirs.head.lhost.head; data.ptr != nil { data.ui.line = 1 - return + } else if data.ptr = data.ldirs.head.next; data.ptr != nil { + data.ui.line = 1 } - data.ptr = data.ldirs.head.next - data.ui.line = 1 } func main() { diff --git a/i_ui.go b/i_ui.go index bf841de..f3f042a 100644 --- a/i_ui.go +++ b/i_ui.go @@ -43,7 +43,7 @@ * POSSIBILITY OF SUCH DAMAGE. * * hardflip: src/i_ui.go - * Thu Jan 04 15:36:48 2024 + * Thu Jan 04 16:20:24 2024 * Joe * * interfacing with the user -- cgit v1.2.3