This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Correct resizing of the command window in TUI mode


Now applied too.  Thanks again!

-- 
Pedro Alves

2010-07-28  Balazs Kezes  <rlblaster@gmail.com>

	* tui/tui-win.c (make_visible_with_new_height): Resize and move
	the command window to the new size and position.

---
 gdb/tui/tui-win.c |    6 ++++++
 1 file changed, 6 insertions(+)

Index: src/gdb/tui/tui-win.c
===================================================================
--- src.orig/gdb/tui/tui-win.c	2010-07-28 12:57:45.000000000 +0100
+++ src/gdb/tui/tui-win.c	2010-07-28 13:01:27.000000000 +0100
@@ -1403,6 +1403,12 @@ make_visible_with_new_height (struct tui
     case CMD_WIN:
       win_info->detail.command_info.cur_line = 0;
       win_info->detail.command_info.curch = 0;
+      wresize (TUI_CMD_WIN->generic.handle,
+	       TUI_CMD_WIN->generic.height,
+	       TUI_CMD_WIN->generic.width);
+      mvwin (TUI_CMD_WIN->generic.handle,
+	     TUI_CMD_WIN->generic.origin.y,
+	     TUI_CMD_WIN->generic.origin.x);
       wmove (win_info->generic.handle,
 	     win_info->detail.command_info.cur_line,
 	     win_info->detail.command_info.curch);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]