jump backwards

This commit is contained in:
cjdenio committed 2026-09-11 14:25:51 -05:00
1 parent 6a83b1c263
commit e6798b1a67
4 files changed
+1 -4

No files matched your search

+1 -1
View File
@@ -380,7 +380,7 @@ func (state *State) HandleInput(buffer []byte) (exited bool) {
if !cellWasFilled {
// jump to next unfilled cell in clue
for x := i + 1; x < len(state.SelectedClue.Cells); x++ {
for x := (i + 1) % len(state.SelectedClue.Cells); x != i; x = ((x + 1) % len(state.SelectedClue.Cells)) {
if state.PuzzleState[state.SelectedClue.Cells[x]] == '-' {
state.SelectedCell = state.SelectedClue.Cells[x]
break