Patchwork [12/20] Don't call refresh in tui_resize_all

login
register
mail settings
Submitter Tom Tromey
Date Sept. 10, 2019, 7:08 p.m.
Message ID <20190910190857.6562-13-tom@tromey.com>
Download mbox | patch
Permalink /patch/34481/
State New
Headers show

Comments

Tom Tromey - Sept. 10, 2019, 7:08 p.m.
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-10  Tom Tromey  <tom@tromey.com>

	* tui/tui-win.c (tui_resize_all): Don't call refresh.
---
 gdb/ChangeLog     | 4 ++++
 gdb/tui/tui-win.c | 1 -
 2 files changed, 4 insertions(+), 1 deletion(-)

Patch

diff --git a/gdb/tui/tui-win.c b/gdb/tui/tui-win.c
index 77044738ef6..8963da2b485 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: