(try_window_id): Don't call set_cursor_from_row if
row_containing_pos returned NULL.
This commit is contained in:
parent
e5ae1c4981
commit
59adf8e8e9
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue