From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8672 invoked by alias); 21 Jul 2010 21:02:21 -0000 Received: (qmail 8596 invoked by uid 22791); 21 Jul 2010 21:02:21 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM X-Spam-Check-By: sourceware.org Received: from mail-bw0-f41.google.com (HELO mail-bw0-f41.google.com) (209.85.214.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 21 Jul 2010 21:02:16 +0000 Received: by bwz9 with SMTP id 9so587314bwz.0 for ; Wed, 21 Jul 2010 14:02:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.126.196 with SMTP id d4mr598326bks.100.1279746133330; Wed, 21 Jul 2010 14:02:13 -0700 (PDT) Received: by 10.204.18.144 with HTTP; Wed, 21 Jul 2010 14:02:13 -0700 (PDT) Date: Wed, 21 Jul 2010 21:02:00 -0000 Message-ID: Subject: [patch] Correct origin calculation of command line window in TUI mode From: Balazs Kezes To: gdb-patches Content-Type: text/plain; charset=ISO-8859-1 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-07/txt/msg00341.txt.bz2 The locator's (a small bar between source and command window) origin (the first row's index) is not updated in tui_resize_all and this outdated data is used to calculate the command window's origin. This patch fixes this by updating it. -- Balazs Index: tui-win.c =================================================================== RCS file: /cvs/src/src/gdb/tui/tui-win.c,v retrieving revision 1.47 diff -c -p -r1.47 tui-win.c *** tui-win.c 17 May 2010 22:21:43 -0000 1.47 --- tui-win.c 21 Jul 2010 20:56:49 -0000 *************** tui_resize_all (void) *** 712,717 **** --- 712,718 ---- else new_height = first_win->generic.height + split_diff; + locator->origin.y = new_height + 1; make_invisible_and_set_new_height (first_win, new_height); TUI_CMD_WIN->generic.origin.y = locator->origin.y + 1; TUI_CMD_WIN->generic.width += width_diff;