diff options
author | Chong Yidong <cyd@stupidchicken.com> | 2006-03-06 18:41:05 +0000 |
---|---|---|
committer | Chong Yidong <cyd@stupidchicken.com> | 2006-03-06 18:41:05 +0000 |
commit | 45b5f35d59cef6e7caca3db4702f8321a7338cad (patch) | |
tree | f9a3cac6bd3d5652fb6d153891dcb09bd40e26ba /src/xdisp.c | |
parent | 881909b0e9969a80f0950e4c9d32fdd34a2c7dc6 (diff) |
* xdisp.c (handle_invisible_prop): Don't update it->position with
a buffer position if we're in a display string.
Diffstat (limited to 'src/xdisp.c')
-rw-r--r-- | src/xdisp.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 2be65a70af9..be40d7652ac 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -3658,8 +3658,11 @@ handle_invisible_prop (it) 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); } } |