comparison src/xdisp.c @ 33898:93b22ccc23e2

(try_window_id): Avoid starting to display in the moddle of a character, a TAB for instance. This is easier than to set up the iterator exactly, and it's not a frequent case, so the additional effort wouldn't really pay off.
author Gerd Moellmann <gerd@gnu.org>
date Mon, 27 Nov 2000 12:12:14 +0000
parents 2e449f784ca7
children 907c3073ae28
comparison
equal deleted inserted replaced
33897:da7c75342507 33898:93b22ccc23e2
10765 start of current_buffer. Value is null if changes start in the 10765 start of current_buffer. Value is null if changes start in the
10766 first line of window. */ 10766 first line of window. */
10767 last_unchanged_at_beg_row = find_last_unchanged_at_beg_row (w); 10767 last_unchanged_at_beg_row = find_last_unchanged_at_beg_row (w);
10768 if (last_unchanged_at_beg_row) 10768 if (last_unchanged_at_beg_row)
10769 { 10769 {
10770 /* Avoid starting to display in the moddle of a character, a TAB
10771 for instance. This is easier than to set up the iterator
10772 exactly, and it's not a frequent case, so the additional
10773 effort wouldn't really pay off. */
10774 while (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P (last_unchanged_at_beg_row)
10775 && last_unchanged_at_beg_row > w->current_matrix->rows)
10776 --last_unchanged_at_beg_row;
10777
10778 if (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P (last_unchanged_at_beg_row))
10779 return 0;
10780
10770 init_to_row_end (&it, w, last_unchanged_at_beg_row); 10781 init_to_row_end (&it, w, last_unchanged_at_beg_row);
10771 start_pos = it.current.pos; 10782 start_pos = it.current.pos;
10772 10783
10773 /* Start displaying new lines in the desired matrix at the same 10784 /* Start displaying new lines in the desired matrix at the same
10774 vpos we would use in the current matrix, i.e. below 10785 vpos we would use in the current matrix, i.e. below