ref: 7e7545cb56cf44aa42582561a2b134ae6cbb633b
parent: f13fbf2285b1731dcc592f5a657dcbda2bbf3a02
author: Ben Harris <bjh21@bjh21.me.uk>
date: Fri Aug 11 19:51:06 EDT 2023
Slant: use new move_cursor() features
--- a/slant.c
+++ b/slant.c
@@ -1739,9 +1739,7 @@
action = (button == CURSOR_SELECT2) ? ANTICLOCKWISE : CLOCKWISE;
} else if (IS_CURSOR_MOVE(button)) {
- move_cursor(button, &ui->cur_x, &ui->cur_y, w, h, false, NULL);
- ui->cur_visible = true;
- return MOVE_UI_UPDATE;
+ return move_cursor(button, &ui->cur_x, &ui->cur_y, w, h, false, &ui->cur_visible);
} else if (button == '\\' || button == '\b' || button == '/') {
int x = ui->cur_x, y = ui->cur_y;
if (button == ("\\" "\b" "/")[state->soln[y*w + x] + 1])