1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-27 15:40:47 -08:00

(adjust_point_for_property): Skip empty overlay string.

This commit is contained in:
Kim F. Storm 2005-05-16 21:25:32 +00:00
parent a605fefc84
commit 4ca39724e0

View file

@ -1947,10 +1947,13 @@ adjust_point_for_property (last_pt, modified)
? get_property_and_range (PT, Qdisplay, &val, &beg, &end, Qnil)
: (beg = OVERLAY_POSITION (OVERLAY_START (overlay)),
end = OVERLAY_POSITION (OVERLAY_END (overlay))))
&& beg < PT) /* && end > PT <- It's always the case. */
&& (beg < PT /* && end > PT <- It's always the case. */
|| (beg <= PT && STRINGP (val) && SCHARS (val) == 0)))
{
xassert (end > PT);
SET_PT (PT < last_pt ? beg : end);
SET_PT (PT < last_pt
? (STRINGP (val) && SCHARS (val) == 0 ? beg - 1 : beg)
: end);
check_composition = check_invisible = 1;
}
check_display = 0;