public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [patch] Correct origin calculation of command line window in TUI mode
@ 2010-07-21 21:02 Balazs Kezes
  2010-07-27 14:43 ` Pedro Alves
  2010-07-28 12:03 ` Pedro Alves
  0 siblings, 2 replies; 8+ messages in thread
From: Balazs Kezes @ 2010-07-21 21:02 UTC (permalink / raw)
  To: gdb-patches

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;

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-07-28 12:03 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-21 21:02 [patch] Correct origin calculation of command line window in TUI mode Balazs Kezes
2010-07-27 14:43 ` Pedro Alves
2010-07-27 22:38   ` Balazs Kezes
2010-07-27 22:46     ` Pedro Alves
2010-07-28  7:24       ` Balazs Kezes
2010-07-28  9:59         ` Pedro Alves
2010-07-28 11:50       ` Pedro Alves
2010-07-28 12:03 ` Pedro Alves

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).