]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix minor problems in text-mode menu display.
authorEli Zaretskii <eliz@gnu.org>
Wed, 9 Oct 2013 20:18:38 +0000 (23:18 +0300)
committerEli Zaretskii <eliz@gnu.org>
Wed, 9 Oct 2013 20:18:38 +0000 (23:18 +0300)
 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.

src/ChangeLog
src/term.c

index 1a05203273f867e925ae6a350b073c2e7d336b89..0597c5d9f2110c8779e96fd364336537e100148b 100644 (file)
@@ -1,3 +1,10 @@
+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
index c357f04cdc6ae1b2ca468dcd70c62e484b00c84f..ad2e90dc795511e4152e7fca383e9ecb0515affd 100644 (file)
@@ -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;
 }