# HG changeset patch # User Kim F. Storm # Date 1094643436 0 # Node ID 01ad85e53516b18343b58d78419102c148b25230 # Parent 6f9c4809aa7f4f1577fd2d1afc760aa64bc0ef5f (set_cursor_from_row): Also look at 'cursor' property in overlay just before point. diff -r 6f9c4809aa7f -r 01ad85e53516 src/xdisp.c --- a/src/xdisp.c Wed Sep 08 11:37:02 2004 +0000 +++ b/src/xdisp.c Wed Sep 08 11:37:16 2004 +0000 @@ -10709,7 +10709,12 @@ (pos == 0 /* From overlay */ || pos == pt_old))) { - cursor_from_overlay_pos = pos == 0 ? last_pos : 0; + /* Estimate overlay buffer position from the buffer + positions of the glyphs before and after the overlay. + Add 1 to last_pos so that if point corresponds to the + glyph right after the overlay, we still use a 'cursor' + property found in that overlay. */ + cursor_from_overlay_pos = pos == 0 ? last_pos+1 : 0; cursor = glyph; cursor_x = x; }