aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Harris <bjh21@bjh21.me.uk>2022-12-05 11:53:00 +0000
committerBen Harris <bjh21@bjh21.me.uk>2022-12-05 23:24:10 +0000
commit8d81c1814d249d3aa2342c02363a0220c54bf71c (patch)
tree048333f53a312b547b580dfaeb45bdf0058ce2cb
parentf8ed76f815494de031c86441bf392f8658ff383d (diff)
downloadpuzzles-8d81c1814d249d3aa2342c02363a0220c54bf71c.zip
puzzles-8d81c1814d249d3aa2342c02363a0220c54bf71c.tar.gz
puzzles-8d81c1814d249d3aa2342c02363a0220c54bf71c.tar.bz2
puzzles-8d81c1814d249d3aa2342c02363a0220c54bf71c.tar.xz
lightup: Remove tests for keystrokes canonicalised by mid-end
Specifically, the mid-end will never pass ' ', '\r', or '\n' to the back-end, so it's pointless for the back-end to look for them.
-rw-r--r--lightup.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lightup.c b/lightup.c
index bd1dc68..fe30c36 100644
--- a/lightup.c
+++ b/lightup.c
@@ -1898,8 +1898,7 @@ static char *interpret_move(const game_state *state, game_ui *ui,
cy = FROMCOORD(y);
action = (button == LEFT_BUTTON) ? FLIP_LIGHT : FLIP_IMPOSSIBLE;
} else if (IS_CURSOR_SELECT(button) ||
- button == 'i' || button == 'I' ||
- button == ' ' || button == '\r' || button == '\n') {
+ button == 'i' || button == 'I') {
if (ui->cur_visible) {
/* Only allow cursor-effect operations if the cursor is visible
* (otherwise you have no idea which square it might be affecting) */