From 7d563e363c72828b9b1bbb0181be6a36643ce7af Mon Sep 17 00:00:00 2001 From: Dmitry Antipov Date: Fri, 11 Oct 2013 15:11:28 +0400 Subject: [PATCH] * dispnew.c (redraw_frame): Remove useless #ifdef because FRAME_MSDOS_P is a compile-time zero everywhere except MS-DOS. Also, move TTY fflush to... * term.c (tty_update_end): ...this function. --- src/ChangeLog | 7 +++++++ src/dispnew.c | 4 ---- src/term.c | 1 + 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 6947c5eddd5..74bb2a06cb9 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,10 @@ +2013-10-11 Dmitry Antipov + + * dispnew.c (redraw_frame): Remove useless #ifdef because + FRAME_MSDOS_P is a compile-time zero everywhere except MS-DOS. + Also, move TTY fflush to... + * term.c (tty_update_end): ...this function. + 2013-10-11 Eli Zaretskii * xdisp.c (display_tty_menu_item): Make sure we never write beyond diff --git a/src/dispnew.c b/src/dispnew.c index e3a1c1b49cb..d01de185332 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -2937,15 +2937,11 @@ redraw_frame (struct frame *f) /* Error if F has no glyphs. */ eassert (f->glyphs_initialized_p); update_begin (f); -#ifdef MSDOS if (FRAME_MSDOS_P (f)) FRAME_TERMINAL (f)->set_terminal_modes_hook (FRAME_TERMINAL (f)); -#endif clear_frame (f); clear_current_matrices (f); update_end (f); - if (FRAME_TERMCAP_P (f)) - fflush (FRAME_TTY (f)->output); windows_or_buffers_changed++; /* Mark all windows as inaccurate, so that every window will have its redisplay done. */ diff --git a/src/term.c b/src/term.c index 9437faee8a2..27471775d03 100644 --- a/src/term.c +++ b/src/term.c @@ -220,6 +220,7 @@ tty_update_end (struct frame *f) tty_show_cursor (tty); tty_turn_off_insert (tty); tty_background_highlight (tty); + fflush (tty->output); } /* The implementation of set_terminal_window for termcap frames. */ -- 2.39.2