diff options
| author | Kim F. Storm | 2004-11-21 14:59:40 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2004-11-21 14:59:40 +0000 |
| commit | 03802f0d9edebe85eec7089c0a0ba7a938afd7dd (patch) | |
| tree | 5b380c3731b5a4a8a01aa6140570b37c56b14cb8 /src | |
| parent | f01d4d05a4d46fe6b313c79de5b5588157d8920f (diff) | |
| download | emacs-03802f0d9edebe85eec7089c0a0ba7a938afd7dd.tar.gz emacs-03802f0d9edebe85eec7089c0a0ba7a938afd7dd.zip | |
(move_it_in_display_line_to, display_line): Restore
saved_face_id if overflow-newline-into-fringe is enabled and line
is continued before or in middle of element from display vector.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 4f82767906c..fabc1e108a5 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -5777,6 +5777,8 @@ move_it_in_display_line_to (it, to_charpos, to_x, op) | |||
| 5777 | result = MOVE_NEWLINE_OR_CR; | 5777 | result = MOVE_NEWLINE_OR_CR; |
| 5778 | break; | 5778 | break; |
| 5779 | } | 5779 | } |
| 5780 | if (it->method == next_element_from_display_vector) | ||
| 5781 | it->face_id = it->saved_face_id; | ||
| 5780 | } | 5782 | } |
| 5781 | #endif /* HAVE_WINDOW_SYSTEM */ | 5783 | #endif /* HAVE_WINDOW_SYSTEM */ |
| 5782 | } | 5784 | } |
| @@ -14785,6 +14787,8 @@ display_line (it) | |||
| 14785 | row->continued_p = 0; | 14787 | row->continued_p = 0; |
| 14786 | row->exact_window_width_line_p = 1; | 14788 | row->exact_window_width_line_p = 1; |
| 14787 | } | 14789 | } |
| 14790 | else if (it->method == next_element_from_display_vector) | ||
| 14791 | it->face_id = it->saved_face_id; | ||
| 14788 | } | 14792 | } |
| 14789 | #endif /* HAVE_WINDOW_SYSTEM */ | 14793 | #endif /* HAVE_WINDOW_SYSTEM */ |
| 14790 | } | 14794 | } |
| @@ -14955,12 +14959,10 @@ display_line (it) | |||
| 14955 | { | 14959 | { |
| 14956 | if (!get_next_display_element (it)) | 14960 | if (!get_next_display_element (it)) |
| 14957 | { | 14961 | { |
| 14958 | #ifdef HAVE_WINDOW_SYSTEM | ||
| 14959 | it->continuation_lines_width = 0; | 14962 | it->continuation_lines_width = 0; |
| 14960 | row->ends_at_zv_p = 1; | 14963 | row->ends_at_zv_p = 1; |
| 14961 | row->exact_window_width_line_p = 1; | 14964 | row->exact_window_width_line_p = 1; |
| 14962 | break; | 14965 | break; |
| 14963 | #endif /* HAVE_WINDOW_SYSTEM */ | ||
| 14964 | } | 14966 | } |
| 14965 | if (ITERATOR_AT_END_OF_LINE_P (it)) | 14967 | if (ITERATOR_AT_END_OF_LINE_P (it)) |
| 14966 | { | 14968 | { |