]> git.eshelyaron.com Git - emacs.git/commitdiff
(command_loop_1): If we ignore force_start, then also
authorKarl Heuer <kwzh@gnu.org>
Fri, 31 Mar 1995 19:26:53 +0000 (19:26 +0000)
committerKarl Heuer <kwzh@gnu.org>
Fri, 31 Mar 1995 19:26:53 +0000 (19:26 +0000)
ignore beg_unchanged and end_unchanged.

src/keyboard.c

index 00a27fa00424da807611215431040d9bbce0a6b0..e484395621d568fdf809a72ab799729cb544d038 100644 (file)
@@ -1100,8 +1100,14 @@ command_loop_1 ()
 
       /* 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))