From d27b3be477b9da7bd341a8a81fbb811b30ffac48 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Wed, 28 Jul 2010 12:08:19 +0000 Subject: [PATCH] 2010-07-28 Balazs Kezes * tui/tui-win.c (make_visible_with_new_height): Resize and move the command window to the new size and position. --- gdb/ChangeLog | 5 +++++ gdb/tui/tui-win.c | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 517a6c0c11f..bf35465825a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-07-28 Balazs Kezes + + * tui/tui-win.c (make_visible_with_new_height): Resize and move + the command window to the new size and position. + 2010-07-28 Balazs Kezes * tui/tui-win.c (tui_resize_all): Update the locator's origin's diff --git a/gdb/tui/tui-win.c b/gdb/tui/tui-win.c index 86b10c03d67..bd94fa839c2 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); -- 2.30.2