* tui/tui-win.c (tui_resize_all): Update the locator's origin's
authorPedro Alves <palves@redhat.com>
Wed, 28 Jul 2010 12:01:22 +0000 (12:01 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 28 Jul 2010 12:01:22 +0000 (12:01 +0000)
coordinates.

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

index bcfb5d5..99a731a 100644 (file)
@@ -1,5 +1,10 @@
 2010-07-28  Balazs Kezes  <rlblaster@gmail.com>
 
+        * tui/tui-win.c (tui_resize_all): Update the locator's origin's
+       coordinates.
+
+2010-07-28  Balazs Kezes  <rlblaster@gmail.com>
+
         * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
        after a detecting a resize.
         * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
index 986dc98..86b10c0 100644 (file)
@@ -712,6 +712,7 @@ tui_resize_all (void)
          else
            new_height = first_win->generic.height + split_diff;
 
+         locator->origin.y = new_height + 1;
          make_invisible_and_set_new_height (first_win, new_height);
          TUI_CMD_WIN->generic.origin.y = locator->origin.y + 1;
          TUI_CMD_WIN->generic.width += width_diff;