diff options
| author | Eli Zaretskii | 2013-09-24 19:07:35 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2013-09-24 19:07:35 +0300 |
| commit | f34729eaec648d9784e68cf407b3ca94b19e3b70 (patch) | |
| tree | 0f5baaa4dc0e5f57fbb5a8282a4e86e8485743ea /src/keyboard.c | |
| parent | df78230943690aa2d95e22f947615c09d2c676e8 (diff) | |
| download | emacs-f34729eaec648d9784e68cf407b3ca94b19e3b70.tar.gz emacs-f34729eaec648d9784e68cf407b3ca94b19e3b70.zip | |
Fix submenus and screen restoration.
Diffstat (limited to 'src/keyboard.c')
| -rw-r--r-- | src/keyboard.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index 4ace767484e..9faa3770cf3 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -3903,7 +3903,18 @@ kbd_buffer_get_event (KBOARD **kbp, | |||
| 3903 | } | 3903 | } |
| 3904 | } | 3904 | } |
| 3905 | else | 3905 | else |
| 3906 | wait_reading_process_output (0, 0, -1, 1, Qnil, NULL, 0); | 3906 | { |
| 3907 | bool do_display = true; | ||
| 3908 | struct tty_display_info *tty = CURTTY (); | ||
| 3909 | |||
| 3910 | /* When this TTY is displaying a menu, we must prevent any | ||
| 3911 | redisplay, because we modify the frame's glyph matrix | ||
| 3912 | behind the back of the display engine. */ | ||
| 3913 | if (tty->showing_menu) | ||
| 3914 | do_display = false; | ||
| 3915 | |||
| 3916 | wait_reading_process_output (0, 0, -1, do_display, Qnil, NULL, 0); | ||
| 3917 | } | ||
| 3907 | 3918 | ||
| 3908 | if (!interrupt_input && kbd_fetch_ptr == kbd_store_ptr) | 3919 | if (!interrupt_input && kbd_fetch_ptr == kbd_store_ptr) |
| 3909 | gobble_input (); | 3920 | gobble_input (); |