diff options
| author | Ben Harris <bjh21@bjh21.me.uk> | 2022-12-07 00:17:08 +0000 |
|---|---|---|
| committer | Ben Harris <bjh21@bjh21.me.uk> | 2022-12-07 00:38:23 +0000 |
| commit | 14b434cb88d192a4a5cb2306115dec28cc69e714 (patch) | |
| tree | b6349a76789ab27c43bbe307069cc55be83bfd09 /guess.c | |
| parent | a8df0189ff9f49db04f9a33ae61bfcd1c1486c80 (diff) | |
| download | puzzles-14b434cb88d192a4a5cb2306115dec28cc69e714.zip puzzles-14b434cb88d192a4a5cb2306115dec28cc69e714.tar.gz puzzles-14b434cb88d192a4a5cb2306115dec28cc69e714.tar.bz2 puzzles-14b434cb88d192a4a5cb2306115dec28cc69e714.tar.xz | |
guess: Move the cursor to the first peg position after a guess
It's annoying having to move it to the left each time. I suppose I
could enter the second guess in reverse order, but then I'd need to move
the cursor all the way to the right to submit it, which is just as bad.
Diffstat (limited to 'guess.c')
| -rw-r--r-- | guess.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -507,7 +507,7 @@ static void game_changed_state(game_ui *ui, const game_state *oldstate, ui->markable = is_markable(&newstate->params, ui->curr_pegs); /* Clean up cursor position */ if (!ui->markable && ui->peg_cur == newstate->solution->npegs) - ui->peg_cur--; + ui->peg_cur = 0; } #define PEGSZ (ds->pegsz) |