changeset 11174:b400b109a398

(command_loop_1): If we ignore force_start, then also ignore beg_unchanged and end_unchanged.
author Karl Heuer <kwzh@gnu.org>
date Fri, 31 Mar 1995 19:26:53 +0000
parents f1a876b8bf5c
children 025aeb70cfed
files src/keyboard.c
diffstat 1 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/keyboard.c	Fri Mar 31 19:23:55 1995 +0000
+++ b/src/keyboard.c	Fri Mar 31 19:26:53 1995 +0000
@@ -1100,8 +1100,14 @@
 
       /* If the previous command tried to force a specific window-start,
 	 forget about that, in case this command moves point far away
-	 from that position.  */
-      XWINDOW (selected_window)->force_start = Qnil;
+	 from that position.  But also throw away beg_unchanged and
+	 end_unchanged information in that case, so that redisplay will
+	 update the whole window properly.  */
+      if (!NILP (XWINDOW (selected_window)->force_start))
+	{
+	  XWINDOW (selected_window)->force_start = Qnil;
+	  beg_unchanged = end_unchanged = 0;
+	}
 
       cmd = read_key_sequence_cmd;
       if (!NILP (Vexecuting_macro))