This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Correct resizing of the command window in TUI mode
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Cc: Balazs Kezes <rlblaster at gmail dot com>
- Date: Wed, 28 Jul 2010 13:09:15 +0100
- Subject: Re: [patch] Correct resizing of the command window in TUI mode
- References: <AANLkTikVPCKx_UT2DxjuFAkUUlX_g8WHc5-ii0wIPu3h@mail.gmail.com>
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);