1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-12 16:23:57 +00:00

(overlays_at): Only let CHANGE_REQ inhibit an assignment of startpos to

prev when startpos == pos.
This commit is contained in:
Miles Bader 2000-10-25 07:30:21 +00:00
parent a850ac03f0
commit 1d5f4c1de4

View 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;
}