diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index bab134e2ef9..fa775d87d1b 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -11260,12 +11260,14 @@ try_window_id (w) | |||
| 11260 | } | 11260 | } |
| 11261 | 11261 | ||
| 11262 | /* Handle the case that changes are all below what is displayed in | 11262 | /* Handle the case that changes are all below what is displayed in |
| 11263 | the window, and that PT is in the window. This short cut cannot | 11263 | the window, and that PT is in the window. This shortcut cannot |
| 11264 | be taken if ZV is visible in the window, and text has been added | 11264 | be taken if ZV is visible in the window, and text has been added |
| 11265 | there that is visible in the window. */ | 11265 | there that is visible in the window. */ |
| 11266 | if (first_changed_charpos >= MATRIX_ROW_END_CHARPOS (row) | 11266 | if (first_changed_charpos >= MATRIX_ROW_END_CHARPOS (row) |
| 11267 | /* ZV is not visible in the window. */ | 11267 | /* ZV is not visible in the window, or there are no |
| 11268 | && current_matrix->zv > MATRIX_ROW_END_CHARPOS (row)) | 11268 | changes at ZV, actually. */ |
| 11269 | && (current_matrix->zv > MATRIX_ROW_END_CHARPOS (row) | ||
| 11270 | || first_changed_charpos == last_changed_charpos)) | ||
| 11269 | { | 11271 | { |
| 11270 | struct glyph_row *r0; | 11272 | struct glyph_row *r0; |
| 11271 | 11273 | ||
| @@ -11420,7 +11422,7 @@ try_window_id (w) | |||
| 11420 | 11422 | ||
| 11421 | #endif /* GLYPH_DEBUG != 0 */ | 11423 | #endif /* GLYPH_DEBUG != 0 */ |
| 11422 | 11424 | ||
| 11423 | 11425 | ||
| 11424 | /* Display new lines. Set last_text_row to the last new line | 11426 | /* Display new lines. Set last_text_row to the last new line |
| 11425 | displayed which has text on it, i.e. might end up as being the | 11427 | displayed which has text on it, i.e. might end up as being the |
| 11426 | line where the window_end_vpos is. */ | 11428 | line where the window_end_vpos is. */ |
| @@ -11904,7 +11906,7 @@ dump_glyph_row (matrix, vpos, glyphs) | |||
| 11904 | fprintf (stderr, "=======================================================================\n"); | 11906 | fprintf (stderr, "=======================================================================\n"); |
| 11905 | 11907 | ||
| 11906 | fprintf (stderr, "%3d %5d %5d %4d %1.1d%1.1d%1.1d%1.1d%1.1d%1.1d\ | 11908 | fprintf (stderr, "%3d %5d %5d %4d %1.1d%1.1d%1.1d%1.1d%1.1d%1.1d\ |
| 11907 | %1.1d%1.1d%1.1d%1.1d%1.1d%1.1d%1.1d%1.1d %4d %4d %4d %4d %4d %4d %4d\n", | 11909 | %1.1d%1.1d%1.1d%1.1d%1.1d%1.1d%1.1d%1.1d %4d %4d %4d %4d %4d %4d %4d\n", |
| 11908 | row - matrix->rows, | 11910 | row - matrix->rows, |
| 11909 | MATRIX_ROW_START_CHARPOS (row), | 11911 | MATRIX_ROW_START_CHARPOS (row), |
| 11910 | MATRIX_ROW_END_CHARPOS (row), | 11912 | MATRIX_ROW_END_CHARPOS (row), |
| @@ -11930,8 +11932,9 @@ dump_glyph_row (matrix, vpos, glyphs) | |||
| 11930 | row->visible_height, | 11932 | row->visible_height, |
| 11931 | row->ascent, | 11933 | row->ascent, |
| 11932 | row->phys_ascent); | 11934 | row->phys_ascent); |
| 11933 | fprintf (stderr, "%9d %5d\n", row->start.overlay_string_index, | 11935 | fprintf (stderr, "%9d %5d\t%5d\n", row->start.overlay_string_index, |
| 11934 | row->end.overlay_string_index); | 11936 | row->end.overlay_string_index, |
| 11937 | row->continuation_lines_width); | ||
| 11935 | fprintf (stderr, "%9d %5d\n", | 11938 | fprintf (stderr, "%9d %5d\n", |
| 11936 | CHARPOS (row->start.string_pos), | 11939 | CHARPOS (row->start.string_pos), |
| 11937 | CHARPOS (row->end.string_pos)); | 11940 | CHARPOS (row->end.string_pos)); |
| @@ -12261,6 +12264,10 @@ compute_line_metrics (it) | |||
| 12261 | else | 12264 | else |
| 12262 | { | 12265 | { |
| 12263 | row->pixel_width = row->used[TEXT_AREA]; | 12266 | row->pixel_width = row->used[TEXT_AREA]; |
| 12267 | if (row->continued_p) | ||
| 12268 | row->pixel_width -= it->continuation_pixel_width; | ||
| 12269 | else if (row->truncated_on_right_p) | ||
| 12270 | row->pixel_width -= it->truncation_pixel_width; | ||
| 12264 | row->ascent = row->phys_ascent = 0; | 12271 | row->ascent = row->phys_ascent = 0; |
| 12265 | row->height = row->phys_height = row->visible_height = 1; | 12272 | row->height = row->phys_height = row->visible_height = 1; |
| 12266 | } | 12273 | } |