]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Remove useless call to wnoutrefresh
authorTom Tromey <tom@tromey.com>
Sun, 17 Dec 2023 20:22:10 +0000 (13:22 -0700)
committerTom Tromey <tom@tromey.com>
Tue, 11 Jun 2024 15:21:18 +0000 (09:21 -0600)
This call to wnoutrefresh is not useful.  It's based on the
misunderstanding that wnoutrefresh somehow prevents display, whereas
actually what it does is copy from one curses buffer to another.

I'm working on a larger patch to clean up this area, but this
particular call can be removed immediately without consequence.

Approved-By: Andrew Burgess <aburgess@redhat.com>
gdb/tui/tui-wingeneral.c

index 11530472687e0ba1ba214080508f7b0260b3192b..d113d77c4abcc43fdccbe3739f8cd52bdba09ac0 100644 (file)
@@ -165,8 +165,6 @@ tui_win_info::make_window ()
   handle.reset (newwin (height, width, y, x));
   if (handle != NULL)
     {
-      if (suppress_output)
-       wnoutrefresh (handle.get ());
       scrollok (handle.get (), TRUE);
       if (can_box ())
        box_win (this, false);