summaryrefslogtreecommitdiff
path: root/src/keyboard.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1993-03-28 08:27:34 +0000
committerRichard M. Stallman <rms@gnu.org>1993-03-28 08:27:34 +0000
commit75c0b143920f3facc1e1b44b69f4a6a53ae7d87f (patch)
treec00679c465f609bad0193ee8bf8156fe4aa793a1 /src/keyboard.c
parent6fc81d6b8e1fd27e25f8fc89769940c34f9acfa1 (diff)
downloademacs-75c0b143920f3facc1e1b44b69f4a6a53ae7d87f.tar.gz
(command_loop_1): Clear force_start of selected_window
after reading each key sequence.
Diffstat (limited to 'src/keyboard.c')
-rw-r--r--src/keyboard.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index 468d9703fe0..2f8689ef13e 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -957,6 +957,11 @@ command_loop_1 ()
last_command_char = keybuf[i - 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;
+
cmd = read_key_sequence_cmd;
if (!NILP (Vexecuting_macro))
{