Skip to content

Commit 1161c7d

Browse files
committed
Fix fallout from fixing bug#37782
* src/keyboard.c (read_key_sequence): Modify the fix for bug#37782 so that it applies only to keyboard keys, not to other events, such as a new buffer. (Bug#38132)
1 parent 2c159da commit 1161c7d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/keyboard.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9589,16 +9589,16 @@ read_key_sequence (Lisp_Object *keybuf, Lisp_Object prompt,
95899589
Fcons (make_lispy_switch_frame (frame),
95909590
KVAR (interrupted_kboard, kbd_queue)));
95919591
}
9592-
if (FIXNUMP (key) && XFIXNUM (key) == -2)
9593-
mock_input = 0;
9594-
else
9592+
if (FIXNUMP (key) && XFIXNUM (key) != -2)
95959593
{
95969594
/* If interrupted while initializing terminal, we
95979595
need to replay the interrupting key. See
95989596
Bug#5095 and Bug#37782. */
95999597
mock_input = 1;
96009598
keybuf[0] = key;
96019599
}
9600+
else
9601+
mock_input = 0;
96029602
goto replay_entire_sequence;
96039603
}
96049604
}

0 commit comments

Comments
 (0)