shithub: puzzles

Download patch

ref: 4bd8822725794989a400768cb69f600e0a5d9734
parent: f8c2477ccbe2e86af2dba2c8483b7655d06652ec
author: Ben Harris <bjh21@bjh21.me.uk>
date: Sat Aug 12 09:52:09 EDT 2023

Unequal: use new move_cursor() features for normal movement

The shift+arrow controls for dimming clues don't currently use it
because they're a bit fiddly.

--- a/unequal.c
+++ b/unequal.c
@@ -1617,11 +1617,9 @@
 
 	    return dupstr(buf);
 	} else {
-            move_cursor(button, &ui->hx, &ui->hy, ds->order, ds->order, false,
-                        NULL);
-	    ui->hshow = true;
             ui->hcursor = true;
-	    return MOVE_UI_UPDATE;
+            return move_cursor(button, &ui->hx, &ui->hy, ds->order, ds->order,
+                               false, &ui->hshow);
 	}
     }
     if (ui->hshow && IS_CURSOR_SELECT(button)) {