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:
parent
a605fefc84
commit
4ca39724e0
1 changed files with 5 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue