]> git.eshelyaron.com Git - emacs.git/commit
Correctly set last_nonmenu_event when replaying
authorDaniel Colascione <dancol@dancol.org>
Sun, 10 Jun 2018 00:45:01 +0000 (17:45 -0700)
committerDaniel Colascione <dancol@dancol.org>
Sun, 10 Jun 2018 00:46:05 +0000 (17:46 -0700)
commitd12924cacb86c53a0547f73af35169db8e44d628
treef808e11c5930db544fbf76b89a0a018443a66e4b
parentaaffae8458dcd774540e7e6b4219c8b5a9902075
Correctly set last_nonmenu_event when replaying

read_key_sequence can, in various circumstances, play back recorded
events.  Make sure that we set last_nonmenu_event as if we weren't
replaying.  Without this change, we leave last_nonmenu_event set to
whatever it was before we started replaying, leading to spurious
random keymap menu prompts appearing after reading terminal control
sequences, the translation of which sometimes causes event replays.

* src/keyboard.c:
(grow_bool_vector): New function
(read_key_sequence): Remember menu event history per-event.
src/keyboard.c