Commit 9f6a18d2 authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

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.
parent 0486beac
2013-10-09 Eli Zaretskii <eliz@gnu.org>
* 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 <jan.h.d@swipnet.se>
* nsfns.m (Fns_convert_utf8_nfd_to_nfc): Check input for valid UTF-8
......
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment