From 6fb701c81ac549ef3e7f0f288456a8eb8103c155 Mon Sep 17 00:00:00 2001 From: Joe Date: Thu, 4 Jan 2024 20:20:20 +0100 Subject: this is going forward --- c_hardflip.go | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'c_hardflip.go') diff --git a/c_hardflip.go b/c_hardflip.go index 6e33d98..9451056 100644 --- a/c_hardflip.go +++ b/c_hardflip.go @@ -43,7 +43,7 @@ * POSSIBILITY OF SUCH DAMAGE. * * hardflip: src/c_hardflip.go - * Tue Dec 26 14:40:37 2023 + * Thu Jan 04 15:37:01 2024 * Joe * * the main @@ -69,6 +69,15 @@ type HardData struct { ptr HardPtr } +func c_reset_ptr(data *HardData) { + if data.ptr = data.ldirs.head.lhost.head; data.ptr != nil { + data.ui.line = 1 + return + } + data.ptr = data.ldirs.head.next + data.ui.line = 1 +} + func main() { data_dir := c_get_data_dir() opts := HardOpts{true, true, false} @@ -81,6 +90,7 @@ func main() { data_dir, nil, } + c_reset_ptr(&data) // for ptr = ldirs.head; ptr != nil ; ptr = ptr.next { // spaces := "" -- cgit v1.2.3