# HG changeset patch # User Kim F. Storm # Date 1039641677 0 # Node ID 54fb272217f581b9631cfa6a54166946ebc8c414 # Parent b859048cf5b4bb5d82bc11f3785eddb84c3247ba (try_window_id): Don't call set_cursor_from_row if row_containing_pos returned NULL. diff -r b859048cf5b4 -r 54fb272217f5 src/xdisp.c --- a/src/xdisp.c Wed Dec 11 21:20:46 2002 +0000 +++ b/src/xdisp.c Wed Dec 11 21:21:17 2002 +0000 @@ -11732,7 +11732,8 @@ /* Set the cursor. */ row = row_containing_pos (w, PT, r0, NULL, 0); - set_cursor_from_row (w, row, current_matrix, 0, 0, 0, 0); + if (row) + set_cursor_from_row (w, row, current_matrix, 0, 0, 0, 0); return 1; } } @@ -11770,7 +11771,8 @@ /* Set the cursor. */ row = row_containing_pos (w, PT, r0, NULL, 0); - set_cursor_from_row (w, row, current_matrix, 0, 0, 0, 0); + if (row) + set_cursor_from_row (w, row, current_matrix, 0, 0, 0, 0); return 2; } }