Commit 86a375f8 authored by Ken Raeburn's avatar Ken Raeburn
Browse files

(record_delete): If we hit the end of the undo list, stop picking elements

apart.
parent 7464346d
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment