# HG changeset patch # User Kim F. Storm # Date 1116278732 0 # Node ID 68eb1c8b3f804d159e6878448132e303c52b7d4b # Parent de870f134ee0386ac5ad07ecb5fd9f14046c8f97 (adjust_point_for_property): Skip empty overlay string. diff -r de870f134ee0 -r 68eb1c8b3f80 src/keyboard.c --- a/src/keyboard.c Mon May 16 21:25:20 2005 +0000 +++ b/src/keyboard.c Mon May 16 21:25:32 2005 +0000 @@ -1947,10 +1947,13 @@ ? 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;