Mercurial > emacs
changeset 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 | 8284bbcb0d10 |
children | 948d2ad26818 |
files | src/xdisp.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xdisp.c Fri Sep 08 09:39:05 2000 +0000 +++ b/src/xdisp.c Fri Sep 08 09:50:15 2000 +0000 @@ -10601,8 +10601,8 @@ 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. */