]> git.eshelyaron.com Git - emacs.git/commitdiff
(overlays_at): Only let CHANGE_REQ inhibit an assignment of startpos to
authorMiles Bader <miles@gnu.org>
Wed, 25 Oct 2000 07:30:21 +0000 (07:30 +0000)
committerMiles Bader <miles@gnu.org>
Wed, 25 Oct 2000 07:30:21 +0000 (07:30 +0000)
  prev when startpos == pos.

src/buffer.c

index 8d90a8088e7c438005f71ecbd297c062d5fa0351..ae04d7a1511e0237bdd0f11fd099a27b0e3e399a 100644 (file)
@@ -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;
     }