shithub: puzzles

Download patch

ref: 3a841891bac72ce959fdc07e8a136dcf527b4f24
parent: 4bd8822725794989a400768cb69f600e0a5d9734
author: Ben Harris <[email protected]>
date: Sat Aug 12 09:53:48 EDT 2023

Unruly: use new move_cursor() features

--- a/unruly.c
+++ b/unruly.c
@@ -1627,11 +1627,9 @@
     }
 
     /* Keyboard move */
-    if (IS_CURSOR_MOVE(button)) {
-        move_cursor(button, &ui->cx, &ui->cy, w2, h2, false, NULL);
-        ui->cursor = true;
-        return MOVE_UI_UPDATE;
-    }
+    if (IS_CURSOR_MOVE(button))
+        return move_cursor(button, &ui->cx, &ui->cy, w2, h2, false,
+                           &ui->cursor);
 
     /* Place one */
     if ((ui->cursor && (button == CURSOR_SELECT || button == CURSOR_SELECT2