Commit 1d5f4c1d authored by Miles Bader's avatar Miles Bader
Browse files

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

  prev when startpos == pos.
parent a850ac03
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment