(try_window_id): Don't call set_cursor_from_row if

row_containing_pos returned NULL.
This commit is contained in:
Kim F. Storm 2002-12-11 21:21:17 +00:00
parent e5ae1c4981
commit 59adf8e8e9

View file

@ -11732,7 +11732,8 @@ try_window_id (w)
/* 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 @@ try_window_id (w)
/* 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;
}
}