about summary refs log tree commit diff stats
path: root/065duplex_list.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-08-27 00:31:15 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-08-27 00:33:15 -0700
commit5efd2b6b56bdb8d365ff24aa212b405e9ff37f2e (patch)
treeda22e0fcdbc63542caf2d9199469dd94ab759dde /065duplex_list.mu
parenta4f5644776543e1e1211028d18f67b9164255155 (diff)
downloadmu-5efd2b6b56bdb8d365ff24aa212b405e9ff37f2e.tar.gz
2085 - undo/redo now working for simple typing
Not yet useable, because we never ever stop coalescing operations. That
will happen when we introduce a second type of operation.
Diffstat (limited to '065duplex_list.mu')
-rw-r--r--065duplex_list.mu7
1 files changed, 5 insertions, 2 deletions
diff --git a/065duplex_list.mu b/065duplex_list.mu
index 3310400d..65cb9592 100644
--- a/065duplex_list.mu
+++ b/065duplex_list.mu
@@ -411,8 +411,11 @@ recipe insert-duplex-range [
   next:address:duplex-list <- next-duplex in
   dest:address:address:duplex-list <- get-address *end, next:offset
   *dest <- copy next
-  dest <- get-address *next, prev:offset
-  *dest <- copy end
+  {
+    break-unless next
+    dest <- get-address *next, prev:offset
+    *dest <- copy end
+  }
   dest <- get-address *in, next:offset
   *dest <- copy start
   dest <- get-address *start, prev:offset