aboutsummaryrefslogtreecommitdiffstats
path: root/src/undo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/undo.c')
-rw-r--r--src/undo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/undo.c b/src/undo.c
index ea4f35397a9..eaf312be676 100644
--- a/src/undo.c
+++ b/src/undo.c
@@ -560,12 +560,13 @@ Return what remains of the list. */)
560 } 560 }
561 cdr = Fcdr (cdr); 561 cdr = Fcdr (cdr);
562 apply1 (car, cdr); 562 apply1 (car, cdr);
563
563 /* Make sure this produces at least one undo entry, 564 /* Make sure this produces at least one undo entry,
564 so the test in `undo' for continuing an undo series 565 so the test in `undo' for continuing an undo series
565 will work right. */ 566 will work right. */
566 if (EQ (oldlist, current_buffer->undo_list)) 567 if (EQ (oldlist, current_buffer->undo_list))
567 current_buffer->undo_list 568 current_buffer->undo_list
568 = Fcons (list2 (Qcdr, Qnil), current_buffer->undo_list); 569 = Fcons (list3 (Qapply, Qcdr, Qnil), current_buffer->undo_list);
569 } 570 }
570 else if (STRINGP (car) && INTEGERP (cdr)) 571 else if (STRINGP (car) && INTEGERP (cdr))
571 { 572 {