comparison src/xdisp.c @ 48807:54fb272217f5

(try_window_id): Don't call set_cursor_from_row if row_containing_pos returned NULL.
author Kim F. Storm <storm@cua.dk>
date Wed, 11 Dec 2002 21:21:17 +0000
parents 0b855d91442b
children 3dc2b58e6dda
comparison
equal deleted inserted replaced
48806:b859048cf5b4 48807:54fb272217f5
11730 delta, delta_bytes); 11730 delta, delta_bytes);
11731 } 11731 }
11732 11732
11733 /* Set the cursor. */ 11733 /* Set the cursor. */
11734 row = row_containing_pos (w, PT, r0, NULL, 0); 11734 row = row_containing_pos (w, PT, r0, NULL, 0);
11735 set_cursor_from_row (w, row, current_matrix, 0, 0, 0, 0); 11735 if (row)
11736 set_cursor_from_row (w, row, current_matrix, 0, 0, 0, 0);
11736 return 1; 11737 return 1;
11737 } 11738 }
11738 } 11739 }
11739 11740
11740 /* Handle the case that changes are all below what is displayed in 11741 /* Handle the case that changes are all below what is displayed in
11768 w->window_end_bytepos 11769 w->window_end_bytepos
11769 = Z_BYTE - MATRIX_ROW_END_BYTEPOS (row); 11770 = Z_BYTE - MATRIX_ROW_END_BYTEPOS (row);
11770 11771
11771 /* Set the cursor. */ 11772 /* Set the cursor. */
11772 row = row_containing_pos (w, PT, r0, NULL, 0); 11773 row = row_containing_pos (w, PT, r0, NULL, 0);
11773 set_cursor_from_row (w, row, current_matrix, 0, 0, 0, 0); 11774 if (row)
11775 set_cursor_from_row (w, row, current_matrix, 0, 0, 0, 0);
11774 return 2; 11776 return 2;
11775 } 11777 }
11776 } 11778 }
11777 11779
11778 /* Give up if window start is in the changed area. 11780 /* Give up if window start is in the changed area.