From patchwork Tue Sep 10 19:08:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 34481 Received: (qmail 26140 invoked by alias); 10 Sep 2019 19:09:12 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 25663 invoked by uid 89); 10 Sep 2019 19:09:08 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-18.6 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.1 spammy=H*r:esmtpa, HX-Spam-Relays-External:esmtpa, H*RU:esmtpa X-HELO: gateway30.websitewelcome.com Received: from gateway30.websitewelcome.com (HELO gateway30.websitewelcome.com) (192.185.197.25) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 10 Sep 2019 19:09:06 +0000 Received: from cm13.websitewelcome.com (cm13.websitewelcome.com [100.42.49.6]) by gateway30.websitewelcome.com (Postfix) with ESMTP id E3BD96BEC for ; Tue, 10 Sep 2019 14:09:04 -0500 (CDT) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id 7lVgi2Nqq3Qi07lVgif6oM; Tue, 10 Sep 2019 14:09:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=CfmqK8Cpz6U4my9/IxBdP6WZNx2HWum8nHSDroHuxGY=; b=TorbtAww5Q1Jq40KmAx48Xi37r 8wWwCGBdKPHP/rHw+RY0OijXP/cIhMtF99qkmjIqISIXIVpS9QfACIHLEobjX6+XzGGsyGejFNIfz JllYVDQNrnDzvxzsFUUNYKgip; Received: from 71-218-73-27.hlrn.qwest.net ([71.218.73.27]:51788 helo=bapiya.Home) by box5379.bluehost.com with esmtpa (Exim 4.92) (envelope-from ) id 1i7lVg-000EcZ-Fd; Tue, 10 Sep 2019 14:09:04 -0500 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH 12/20] Don't call refresh in tui_resize_all Date: Tue, 10 Sep 2019 13:08:49 -0600 Message-Id: <20190910190857.6562-13-tom@tromey.com> In-Reply-To: <20190910190857.6562-1-tom@tromey.com> References: <20190910190857.6562-1-tom@tromey.com> 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 * 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(-) 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: