aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-01-04 20:20:20 +0100
committerJoe <rbo@gmx.us>2024-01-04 20:20:20 +0100
commitc6e75bad095ca01f39307faf0739cc52cca8e691 (patch)
tree6a3f9f2e599fefe53cd5641b869b9bf33d356339
parentthis is going forward (diff)
downloadhardflip-c6e75bad095ca01f39307faf0739cc52cca8e691.tar.gz
hardflip-c6e75bad095ca01f39307faf0739cc52cca8e691.tar.bz2
hardflip-c6e75bad095ca01f39307faf0739cc52cca8e691.tar.xz
hardflip-c6e75bad095ca01f39307faf0739cc52cca8e691.tar.zst
hardflip-c6e75bad095ca01f39307faf0739cc52cca8e691.zip
works for now
-rw-r--r--c_hardflip.go5
-rw-r--r--i_ui.go2
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