aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKim F. Storm2002-12-11 21:21:17 +0000
committerKim F. Storm2002-12-11 21:21:17 +0000
commit59adf8e8e9e830b3fb1a57895d3822c63fa8961b (patch)
treefdf92d1fd5e3d604fb2bb695da590e26b51752ca /src
parente5ae1c4981404802afc6fb3df8db1a3cb0f5ab44 (diff)
downloademacs-59adf8e8e9e830b3fb1a57895d3822c63fa8961b.tar.gz
emacs-59adf8e8e9e830b3fb1a57895d3822c63fa8961b.zip
(try_window_id): Don't call set_cursor_from_row if
row_containing_pos returned NULL.
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index bfe9d4f9637..aff2421a1b7 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -11732,7 +11732,8 @@ try_window_id (w)
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 }
@@ -11770,7 +11771,8 @@ try_window_id (w)
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 }