From 5efd2b6b56bdb8d365ff24aa212b405e9ff37f2e Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 27 Aug 2015 00:31:15 -0700 Subject: 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. --- 065duplex_list.mu | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to '065duplex_list.mu') 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 -- cgit 1.4.1-2-gfad0