2010-07-28 Balazs Kezes <rlblaster@gmail.com>
authorPedro Alves <palves@redhat.com>
Wed, 28 Jul 2010 12:08:19 +0000 (12:08 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 28 Jul 2010 12:08:19 +0000 (12:08 +0000)
* tui/tui-win.c (make_visible_with_new_height): Resize and move
the command window to the new size and position.

gdb/ChangeLog
gdb/tui/tui-win.c

index 517a6c0c11f4e7d2bbee2942754c7341a5b9d3d3..bf35465825a15a994eefef989c9e3748786bc626 100644 (file)
@@ -1,3 +1,8 @@
+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.
+
 2010-07-28  Balazs Kezes  <rlblaster@gmail.com>
 
        * tui/tui-win.c (tui_resize_all): Update the locator's origin's
index 86b10c03d6743de79f41f7b6b6ebf7cd8f174a79..bd94fa839c23750b1546319075120056b76fc5fb 100644 (file)
@@ -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);