ref: 9afdd4cca4823fa3b27ad2ca2fec33e04d7ab103
parent: ea223a23503c80759d5579626285eda0e617d6b4
author: Ben Harris <bjh21@bjh21.me.uk>
date: Mon Dec 5 18:16:04 EST 2022
guess: Fix keyboard access to hold function This has been broken since 2015. It was accidentally using "IS_CURSOR_SELECT(button)" in place of "button == CURSOR_SELECT" and these are not the same thing.
--- a/guess.c
+++ b/guess.c
@@ -892,7 +892,7 @@
if (button == CURSOR_LEFT && ui->peg_cur > 0)
ui->peg_cur--;
ret = UI_UPDATE;
- } else if (IS_CURSOR_SELECT(button)) {
+ } else if (button == CURSOR_SELECT) {
ui->display_cur = true;
if (ui->peg_cur == from->params.npegs) {
ret = encode_move(from, ui);