Commit bfe0ee88 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(try_window_id): When trying to locate cursor in

unchanged rows at the top, handle the case that we can't find it.
parent bb934822
2000-09-08 Gerd Moellmann <gerd@gnu.org>
* xdisp.c (try_window_id): When trying to locate cursor in
unchanged rows at the top, handle the case that we can't find it.
* xterm.c (x_draw_glyphs): Handle case START and END are out
of bounds more carefully.
......
......@@ -10601,8 +10601,8 @@ try_window_id (w)
row = row_containing_pos (w, PT,
MATRIX_FIRST_TEXT_ROW (w->current_matrix),
last_unchanged_at_beg_row + 1);
xassert (row && row <= last_unchanged_at_beg_row);
set_cursor_from_row (w, row, w->current_matrix, 0, 0, 0, 0);
if (row)
set_cursor_from_row (w, row, w->current_matrix, 0, 0, 0, 0);
}
/* Start from first_unchanged_at_end_row looking for PT. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment