shithub: puzzles

Download patch

ref: df2d6d347e7e4dc0d74df708906844ed67b1b358
parent: 995bcef981c0495df3e43d1025339dc5991f92d9
author: Ben Harris <bjh21@bjh21.me.uk>
date: Wed Aug 9 19:52:08 EDT 2023

Keen: use new move_cursor() features

--- a/keen.c
+++ b/keen.c
@@ -1783,10 +1783,8 @@
         }
     }
     if (IS_CURSOR_MOVE(button)) {
-        move_cursor(button, &ui->hx, &ui->hy, w, w, false, NULL);
-        ui->hshow = true;
         ui->hcursor = true;
-        return MOVE_UI_UPDATE;
+        return move_cursor(button, &ui->hx, &ui->hy, w, w, false, &ui->hshow);
     }
     if (ui->hshow &&
         (button == CURSOR_SELECT)) {