diff options
| author | Kim F. Storm | 2004-11-24 11:29:46 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2004-11-24 11:29:46 +0000 |
| commit | bd0e59f8cf52ff08d38ad30c50138a2483c2b341 (patch) | |
| tree | d7d0e8f7320aaa1475117fba979ca37a6091d30b | |
| parent | a5bd504e5a2652014742a00e9fe5dcf6f01d8def (diff) | |
| download | emacs-bd0e59f8cf52ff08d38ad30c50138a2483c2b341.tar.gz emacs-bd0e59f8cf52ff08d38ad30c50138a2483c2b341.zip | |
(move_it_in_display_line_to, display_line):
Restore saved_face_id also when truncate-lines or hscrolled.
| -rw-r--r-- | src/xdisp.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index d13f89ad27b..36892a219c0 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -5862,6 +5862,8 @@ move_it_in_display_line_to (it, to_charpos, to_x, op) | |||
| 5862 | result = MOVE_NEWLINE_OR_CR; | 5862 | result = MOVE_NEWLINE_OR_CR; |
| 5863 | break; | 5863 | break; |
| 5864 | } | 5864 | } |
| 5865 | if (it->method == next_element_from_display_vector) | ||
| 5866 | it->face_id = it->saved_face_id; | ||
| 5865 | } | 5867 | } |
| 5866 | #endif /* HAVE_WINDOW_SYSTEM */ | 5868 | #endif /* HAVE_WINDOW_SYSTEM */ |
| 5867 | result = MOVE_LINE_TRUNCATED; | 5869 | result = MOVE_LINE_TRUNCATED; |
| @@ -14628,8 +14630,12 @@ display_line (it) | |||
| 14628 | hscrolled. This may stop at an x-position < IT->first_visible_x | 14630 | hscrolled. This may stop at an x-position < IT->first_visible_x |
| 14629 | if the first glyph is partially visible or if we hit a line end. */ | 14631 | if the first glyph is partially visible or if we hit a line end. */ |
| 14630 | if (it->current_x < it->first_visible_x) | 14632 | if (it->current_x < it->first_visible_x) |
| 14631 | move_it_in_display_line_to (it, ZV, it->first_visible_x, | 14633 | { |
| 14632 | MOVE_TO_POS | MOVE_TO_X); | 14634 | move_it_in_display_line_to (it, ZV, it->first_visible_x, |
| 14635 | MOVE_TO_POS | MOVE_TO_X); | ||
| 14636 | if (it->method == next_element_from_display_vector) | ||
| 14637 | it->face_id = it->saved_face_id; | ||
| 14638 | } | ||
| 14633 | 14639 | ||
| 14634 | /* Get the initial row height. This is either the height of the | 14640 | /* Get the initial row height. This is either the height of the |
| 14635 | text hscrolled, if there is any, or zero. */ | 14641 | text hscrolled, if there is any, or zero. */ |
| @@ -14970,6 +14976,8 @@ display_line (it) | |||
| 14970 | row->exact_window_width_line_p = 1; | 14976 | row->exact_window_width_line_p = 1; |
| 14971 | goto at_end_of_line; | 14977 | goto at_end_of_line; |
| 14972 | } | 14978 | } |
| 14979 | if (it->method == next_element_from_display_vector) | ||
| 14980 | it->face_id = it->saved_face_id; | ||
| 14973 | } | 14981 | } |
| 14974 | } | 14982 | } |
| 14975 | #endif /* HAVE_WINDOW_SYSTEM */ | 14983 | #endif /* HAVE_WINDOW_SYSTEM */ |