aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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