# HG changeset patch # User Chong Yidong # Date 1141670465 0 # Node ID 2c8c2aaf3daa78f6f8151cea03abc44a43abcc46 # Parent 4a1a9b4c39a6fadf4c9e4f10790c5ee50283a173 * xdisp.c (handle_invisible_prop): Don't update it->position with a buffer position if we're in a display string. diff -r 4a1a9b4c39a6 -r 2c8c2aaf3daa src/ChangeLog --- a/src/ChangeLog Mon Mar 06 16:31:46 2006 +0000 +++ b/src/ChangeLog Mon Mar 06 18:41:05 2006 +0000 @@ -1,3 +1,8 @@ +2006-03-06 Chong Yidong + + * xdisp.c (handle_invisible_prop): Don't update it->position with + a buffer position if we're in a display string. + 2006-03-06 YAMAMOTO Mitsuharu * macterm.h (MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH) diff -r 4a1a9b4c39a6 -r 2c8c2aaf3daa src/xdisp.c --- a/src/xdisp.c Mon Mar 06 16:31:46 2006 +0000 +++ b/src/xdisp.c Mon Mar 06 18:41:05 2006 +0000 @@ -3658,8 +3658,11 @@ the invisible text. Otherwise the cursor would be placed _after_ the ellipsis when the point is after the first invisible character. */ - it->position.charpos = IT_CHARPOS (*it) - 1; - it->position.bytepos = CHAR_TO_BYTE (it->position.charpos); + if (!STRINGP (it->object)) + { + it->position.charpos = IT_CHARPOS (*it) - 1; + it->position.bytepos = CHAR_TO_BYTE (it->position.charpos); + } setup_for_ellipsis (it, 0); } }