From 1d5f4c1de410a6cfa16d5ebf048946e17afdfa08 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Wed, 25 Oct 2000 07:30:21 +0000 Subject: [PATCH] (overlays_at): Only let CHANGE_REQ inhibit an assignment of startpos to prev when startpos == pos. --- src/buffer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.39.2