diff options
| author | Kenichi Handa | 2004-01-24 05:00:26 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2004-01-24 05:00:26 +0000 |
| commit | 069315b7a1057457be78035387b9466b689a6800 (patch) | |
| tree | d87e63a994654d7ba0c24ddaba3e75ade3034c08 /src | |
| parent | f9756f18fbc0ea73a15a7788e787f091cd0b6606 (diff) | |
| download | emacs-069315b7a1057457be78035387b9466b689a6800.tar.gz emacs-069315b7a1057457be78035387b9466b689a6800.zip | |
(get_next_display_element): Pass -1 as POS to
FACE_FOR_CHAR if displaying a C-string.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 6b814c0e55a..7f0ebc57a22 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -4925,9 +4925,10 @@ get_next_display_element (it) | |||
| 4925 | && FRAME_WINDOW_P (it->f)) | 4925 | && FRAME_WINDOW_P (it->f)) |
| 4926 | { | 4926 | { |
| 4927 | struct face *face = FACE_FROM_ID (it->f, it->face_id); | 4927 | struct face *face = FACE_FROM_ID (it->f, it->face_id); |
| 4928 | int pos = (STRINGP (it->string) | 4928 | int pos = (it->s ? -1 |
| 4929 | ? IT_STRING_CHARPOS (*it) : IT_CHARPOS (*it)); | 4929 | : STRINGP (it->string) ? IT_STRING_CHARPOS (*it) |
| 4930 | 4930 | : IT_CHARPOS (*it)); | |
| 4931 | |||
| 4931 | it->face_id = FACE_FOR_CHAR (it->f, face, it->c, pos, it->string); | 4932 | it->face_id = FACE_FOR_CHAR (it->f, face, it->c, pos, it->string); |
| 4932 | } | 4933 | } |
| 4933 | } | 4934 | } |