mirror of
https://github.com/cjdenio/crossword.git
synced 2026-10-03 11:06:19 +00:00
jump backwards
This commit is contained in:
4 files changed
+1
-4
No files matched your search
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user