]> code.delx.au - gnu-emacs/blobdiff - lisp/simple.el
* simple.el (undo-elt-in-region): Fix buffer corruption for edge
[gnu-emacs] / lisp / simple.el
index bf8b6a75ac73f042e9336ed2033d6e27e1e5e398..18448331ff06d5f397db39d6b94ebf9f0c1833c1 100644 (file)
@@ -2426,7 +2426,7 @@ If it crosses the edge, we return nil."
        ((stringp (car undo-elt))
         ;; (TEXT . POSITION)
         (and (>= (abs (cdr undo-elt)) start)
-             (< (abs (cdr undo-elt)) end)))
+             (<= (abs (cdr undo-elt)) end)))
        ((and (consp undo-elt) (markerp (car undo-elt)))
         ;; This is a marker-adjustment element (MARKER . ADJUSTMENT).
         ;; See if MARKER is inside the region.