public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Don't call refresh in tui_resize_all
@ 2019-09-20 20:06 Tom Tromey
  0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2019-09-20 20:06 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=0891be0835883fc1159565b780d63954e6b09bd9

commit 0891be0835883fc1159565b780d63954e6b09bd9
Author: Tom Tromey <tom@tromey.com>
Date:   Wed Jul 24 21:05:10 2019 -0600

    Don't call refresh in tui_resize_all
    
    There's no reason to call refresh in tui_resize_all.  This call
    flushes the curses window contents to the terminal -- but, because
    we're about the resize all the windows, we're going to be sending more
    data to the terminal momentarily.  This patch removes the call.
    
    gdb/ChangeLog
    2019-09-20  Tom Tromey  <tom@tromey.com>
    
    	* tui/tui-win.c (tui_resize_all): Don't call refresh.

Diff:
---
 gdb/ChangeLog     | 4 ++++
 gdb/tui/tui-win.c | 1 -
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 9bc6f26..35584db 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
 2019-09-20  Tom Tromey  <tom@tromey.com>
 
+	* tui/tui-win.c (tui_resize_all): Don't call refresh.
+
+2019-09-20  Tom Tromey  <tom@tromey.com>
+
 	* tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
 	height for locator.
 	* tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
diff --git a/gdb/tui/tui-win.c b/gdb/tui/tui-win.c
index 7704473..8963da2 100644
--- a/gdb/tui/tui-win.c
+++ b/gdb/tui/tui-win.c
@@ -561,7 +561,6 @@ tui_resize_all (void)
          AIX 5.3 does not define clear.  */
       erase ();
       clearok (curscr, TRUE);
-      refresh ();
       switch (cur_layout)
        {
 	case SRC_COMMAND:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-09-20 20:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-20 20:06 [binutils-gdb] Don't call refresh in tui_resize_all Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).