aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2010-07-28 12:01:22 +0000
committerPedro Alves <palves@redhat.com>2010-07-28 12:01:22 +0000
commit0036e657cbfdb1ddfdfcc926c552c3d710938f78 (patch)
tree1756a336659d3c8819bbf61fca1cb4fbc1900110
parent369003559a4526b4d504d17da211f63b20713a00 (diff)
downloadbinutils-0036e657cbfdb1ddfdfcc926c552c3d710938f78.zip
binutils-0036e657cbfdb1ddfdfcc926c552c3d710938f78.tar.gz
binutils-0036e657cbfdb1ddfdfcc926c552c3d710938f78.tar.bz2
* tui/tui-win.c (tui_resize_all): Update the locator's origin's
coordinates.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/tui/tui-win.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index bcfb5d5..99a731a 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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
diff --git a/gdb/tui/tui-win.c b/gdb/tui/tui-win.c
index 986dc98..86b10c0 100644
--- a/gdb/tui/tui-win.c
+++ b/gdb/tui/tui-win.c
@@ -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;