comparison src/xdisp.c @ 31493:900897103eb2

(try_window_id): When trying to locate cursor in unchanged rows at the top, handle the case that we can't find it.
author Gerd Moellmann <gerd@gnu.org>
date Fri, 08 Sep 2000 09:50:15 +0000
parents 832733dd336e
children a1d733428491
comparison
equal deleted inserted replaced
31492:8284bbcb0d10 31493:900897103eb2
10599 && last_unchanged_at_beg_row) 10599 && last_unchanged_at_beg_row)
10600 { 10600 {
10601 row = row_containing_pos (w, PT, 10601 row = row_containing_pos (w, PT,
10602 MATRIX_FIRST_TEXT_ROW (w->current_matrix), 10602 MATRIX_FIRST_TEXT_ROW (w->current_matrix),
10603 last_unchanged_at_beg_row + 1); 10603 last_unchanged_at_beg_row + 1);
10604 xassert (row && row <= last_unchanged_at_beg_row); 10604 if (row)
10605 set_cursor_from_row (w, row, w->current_matrix, 0, 0, 0, 0); 10605 set_cursor_from_row (w, row, w->current_matrix, 0, 0, 0, 0);
10606 } 10606 }
10607 10607
10608 /* Start from first_unchanged_at_end_row looking for PT. */ 10608 /* Start from first_unchanged_at_end_row looking for PT. */
10609 else if (first_unchanged_at_end_row) 10609 else if (first_unchanged_at_end_row)
10610 { 10610 {