diff options
| author | Chong Yidong | 2006-03-06 18:41:05 +0000 |
|---|---|---|
| committer | Chong Yidong | 2006-03-06 18:41:05 +0000 |
| commit | 45b5f35d59cef6e7caca3db4702f8321a7338cad (patch) | |
| tree | f9a3cac6bd3d5652fb6d153891dcb09bd40e26ba /src | |
| parent | 881909b0e9969a80f0950e4c9d32fdd34a2c7dc6 (diff) | |
| download | emacs-45b5f35d59cef6e7caca3db4702f8321a7338cad.tar.gz emacs-45b5f35d59cef6e7caca3db4702f8321a7338cad.zip | |
* 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')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/xdisp.c | 7 |
2 files changed, 10 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index b4848e99bef..1f27fc7a6f9 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2006-03-06 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * xdisp.c (handle_invisible_prop): Don't update it->position with | ||
| 4 | a buffer position if we're in a display string. | ||
| 5 | |||
| 1 | 2006-03-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 6 | 2006-03-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
| 2 | 7 | ||
| 3 | * macterm.h (MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH) | 8 | * macterm.h (MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH) |
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) | |||
| 3658 | the invisible text. Otherwise the cursor would be | 3658 | the invisible text. Otherwise the cursor would be |
| 3659 | placed _after_ the ellipsis when the point is after the | 3659 | placed _after_ the ellipsis when the point is after the |
| 3660 | first invisible character. */ | 3660 | first invisible character. */ |
| 3661 | it->position.charpos = IT_CHARPOS (*it) - 1; | 3661 | if (!STRINGP (it->object)) |
| 3662 | it->position.bytepos = CHAR_TO_BYTE (it->position.charpos); | 3662 | { |
| 3663 | it->position.charpos = IT_CHARPOS (*it) - 1; | ||
| 3664 | it->position.bytepos = CHAR_TO_BYTE (it->position.charpos); | ||
| 3665 | } | ||
| 3663 | setup_for_ellipsis (it, 0); | 3666 | setup_for_ellipsis (it, 0); |
| 3664 | } | 3667 | } |
| 3665 | } | 3668 | } |