aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2010-07-28 12:08:19 +0000
committerPedro Alves <palves@redhat.com>2010-07-28 12:08:19 +0000
commitd27b3be477b9da7bd341a8a81fbb811b30ffac48 (patch)
tree11e703544c7d01777093d480e70d3cea554bfac7 /gdb/tui
parenta782f43e8660dc23632368cabaf2cdd1a88fb23a (diff)
downloadgdb-d27b3be477b9da7bd341a8a81fbb811b30ffac48.zip
gdb-d27b3be477b9da7bd341a8a81fbb811b30ffac48.tar.gz
gdb-d27b3be477b9da7bd341a8a81fbb811b30ffac48.tar.bz2
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.
Diffstat (limited to 'gdb/tui')
-rw-r--r--gdb/tui/tui-win.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/tui/tui-win.c b/gdb/tui/tui-win.c
index 86b10c0..bd94fa8 100644
--- a/gdb/tui/tui-win.c
+++ b/gdb/tui/tui-win.c
@@ -1403,6 +1403,12 @@ make_visible_with_new_height (struct tui_win_info *win_info)
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);