Improve restoration of cursor positions after undo/redo.