From: Eli Zaretskii Date: Wed, 9 Oct 2013 20:18:38 +0000 (+0300) Subject: Fix minor problems in text-mode menu display. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~1313 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9f6a18d27ebab2f41edb60cc5c45af0222f8210f;p=emacs.git Fix minor problems in text-mode menu display. src/term.c (tty_menu_activate): Flush the output stream after showing the cursor, and don't mark the frame garbaged at exit from the function. Fixes redisplay glitches when moving from one menu to another. --- diff --git a/src/ChangeLog b/src/ChangeLog index 1a05203273f..0597c5d9f21 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,10 @@ +2013-10-09 Eli Zaretskii + + * term.c (tty_menu_activate): Flush the output stream after + showing the cursor, and don't mark the frame garbaged at exit from + the function. Fixes redisplay glitches when moving from one menu + to another. + 2013-10-09 Jan Djärv * nsfns.m (Fns_convert_utf8_nfd_to_nfc): Check input for valid UTF-8 diff --git a/src/term.c b/src/term.c index c357f04cdc6..ad2e90dc795 100644 --- a/src/term.c +++ b/src/term.c @@ -3428,6 +3428,7 @@ tty_menu_activate (tty_menu *menu, int *pane, int *selidx, while (statecount--) free_saved_screen (state[statecount].screen_behind); tty_show_cursor (tty); /* turn cursor back on */ + fflush (tty->output); /* Clean up any mouse events that are waiting inside Emacs event queue. These events are likely to be generated before the menu was even @@ -3437,7 +3438,6 @@ tty_menu_activate (tty_menu *menu, int *pane, int *selidx, discard_mouse_events (); if (!kbd_buffer_events_waiting ()) clear_input_pending (); - SET_FRAME_GARBAGED (sf); return result; }