Mercurial > emacs
comparison src/xdisp.c @ 58472:5cd5cdafa9c5
(move_it_in_display_line_to, display_line):
Restore saved_face_id also when truncate-lines or hscrolled.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Wed, 24 Nov 2004 11:29:46 +0000 |
parents | 9c19dd9a3b68 |
children | 5c07c674b739 |
comparison
equal
deleted
inserted
replaced
58471:fd75a0e281c7 | 58472:5cd5cdafa9c5 |
---|---|
5860 if (ITERATOR_AT_END_OF_LINE_P (it)) | 5860 if (ITERATOR_AT_END_OF_LINE_P (it)) |
5861 { | 5861 { |
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; |
5868 break; | 5870 break; |
5869 } | 5871 } |
14626 | 14628 |
14627 /* Move over display elements that are not visible because we are | 14629 /* Move over display elements that are not visible because we are |
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. */ |
14636 row->ascent = it->max_ascent; | 14642 row->ascent = it->max_ascent; |
14637 row->height = it->max_ascent + it->max_descent; | 14643 row->height = it->max_ascent + it->max_descent; |
14968 if (ITERATOR_AT_END_OF_LINE_P (it)) | 14974 if (ITERATOR_AT_END_OF_LINE_P (it)) |
14969 { | 14975 { |
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 */ |
14976 | 14984 |
14977 row->truncated_on_right_p = 1; | 14985 row->truncated_on_right_p = 1; |