From: Miles Bader Date: Wed, 25 Oct 2000 07:30:21 +0000 (+0000) Subject: (overlays_at): Only let CHANGE_REQ inhibit an assignment of startpos to X-Git-Tag: emacs-pretest-21.0.90~595 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1d5f4c1de410a6cfa16d5ebf048946e17afdfa08;p=emacs.git (overlays_at): Only let CHANGE_REQ inhibit an assignment of startpos to prev when startpos == pos. --- diff --git a/src/buffer.c b/src/buffer.c index 8d90a8088e7..ae04d7a1511 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -2363,7 +2363,8 @@ overlays_at (pos, extend, vec_ptr, len_ptr, next_ptr, prev_ptr, change_req) } else if (endpos < pos && endpos > prev) prev = endpos; - else if (endpos == pos && startpos > prev && !change_req) + else if (endpos == pos && startpos > prev + && (!change_req || startpos < pos)) prev = startpos; }