diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/undo.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/undo.c b/src/undo.c index 02c89f3779d..2993dc77d5e 100644 --- a/src/undo.c +++ b/src/undo.c | |||
| @@ -151,7 +151,10 @@ truncate_undo_list (list, minsize, maxsize) | |||
| 151 | last_boundary = Qnil; | 151 | last_boundary = Qnil; |
| 152 | 152 | ||
| 153 | /* Always preserve at least the most recent undo record. | 153 | /* Always preserve at least the most recent undo record. |
| 154 | If the first element is an undo boundary, skip past it. */ | 154 | If the first element is an undo boundary, skip past it. |
| 155 | |||
| 156 | Skip, skip, skip the undo, skip, skip, skip the undo, | ||
| 157 | Skip, skip, skip the undo, skip to the undo bound'ry. */ | ||
| 155 | if (XTYPE (next) == Lisp_Cons | 158 | if (XTYPE (next) == Lisp_Cons |
| 156 | && XCONS (next)->car == Qnil) | 159 | && XCONS (next)->car == Qnil) |
| 157 | { | 160 | { |