about summary refs log tree commit diff stats
path: root/edit.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-08-29 17:46:02 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-08-29 17:46:02 -0700
commit3bbc3af6be9ef635d761b83ee63029f332b2381e (patch)
tree3b4d9fdccc3037782190cfa871c34e3c7fb1c1d8 /edit.mu
parent665fb11e6561d289c873d771623517171fb51c32 (diff)
downloadmu-3bbc3af6be9ef635d761b83ee63029f332b2381e.tar.gz
2102
Diffstat (limited to 'edit.mu')
-rw-r--r--edit.mu4
1 files changed, 4 insertions, 0 deletions
diff --git a/edit.mu b/edit.mu
index 2adcbc75..f0699b42 100644
--- a/edit.mu
+++ b/edit.mu
@@ -6658,6 +6658,10 @@ before +insert-character-end [
   +done-inserting-character
 ]
 
+# Everytime you add a new operation to the undo stack, be sure to clear the
+# redo stack, because it's now obsolete.
+# Beware: since we're counting cursor moves as operations, this means just
+# moving the cursor can lose work on the undo stack.
 recipe add-operation [
   local-scope
   editor:address:editor-data <- next-ingredient