about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-04-21 16:48:30 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-04-21 16:48:30 -0700
commit537e7812c998b468142b16bde8901d8405dbc690 (patch)
tree21f88892466eb1f9199f8d8e89a4e5e70eda8486
parentf79545262d1bac73dea766ab51776e7d58986a93 (diff)
downloadmu-537e7812c998b468142b16bde8901d8405dbc690.tar.gz
2852
-rw-r--r--edit/011-editor-undo.mu3
1 files changed, 2 insertions, 1 deletions
diff --git a/edit/011-editor-undo.mu b/edit/011-editor-undo.mu
index 44f55438..3524840a 100644
--- a/edit/011-editor-undo.mu
+++ b/edit/011-editor-undo.mu
@@ -739,9 +739,9 @@ after <handle-undo> [
     move:address:move-operation <- maybe-convert *op, move:variant
     break-unless move
     # assert cursor-row/cursor-column/top-of-screen match after-row/after-column/after-top-of-screen
-    top:address:address:shared:duplex-list:character <- get-address *editor, top-of-screen:offset
     *cursor-row <- get *move, before-row:offset
     *cursor-column <- get *move, before-column:offset
+    top:address:address:shared:duplex-list:character <- get-address *editor, top-of-screen:offset
     *top <- get *move, before-top-of-screen:offset
   }
 ]
@@ -1494,6 +1494,7 @@ scenario editor-separates-undo-insert-from-undo-cursor-move [
     .┈┈┈┈┈┈┈┈┈┈.
     .          .
   ]
+  # cursor moves
   memory-should-contain [
     3 <- 1
     4 <- 1