Commit 59adf8e8 authored by Kim F. Storm's avatar Kim F. Storm
Browse files

(try_window_id): Don't call set_cursor_from_row if

row_containing_pos returned NULL.
parent e5ae1c49
......@@ -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;
}
}
......
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