mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-25 07:28:20 +00:00
(record_delete): If we hit the end of the undo list, stop picking elements
apart.
This commit is contained in:
parent
7464346de7
commit
86a375f869
@ -115,7 +115,10 @@ record_delete (beg, string)
|
||||
|
||||
while (1)
|
||||
{
|
||||
elt = XCAR (tail);
|
||||
if (NILP (tail))
|
||||
elt = Qnil;
|
||||
else
|
||||
elt = XCAR (tail);
|
||||
if (NILP (elt) || ! (CONSP (elt) && MARKERP (XCAR (elt))))
|
||||
break;
|
||||
tail = XCDR (tail);
|
||||
|
Loading…
Reference in New Issue
Block a user