Undo (ctrl-z) highlights the wrong cell
I expect undo to
- Set the last edited cell back to its previous value
- Select that cell
- Unwind the undo state (so that additional applications of undo reset edited cells in reverse order)
This does not work reliably, as a bit of testing will discover. In the screencast below, I do the following operations:
- Hit the "a" key. (The cursor is automatically advanced to the next empty square per my settings.)
- Hit the "l" key.
- Hit ctrl-z.
- Hit ctrl-z.
As you can see, the second time I use undo, the wrong cell is selected.
What seems to happen in my testing is that ctrl-z works as expected as long as you remain in a single clue. However, when you remove the first edit to a clue in a segment of the history stack, the cursor jumps to where it was immediately before editing the clue.
Edit: wrong, see comment below.
In case it matters, I'm using the "next open cell in the same clue" advance behavior.
Version: b6656cd2
Edited by Adam Fontenot