diff options
author | Tom Tromey <tom@tromey.com> | 2019-10-09 21:18:31 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-12-11 15:49:03 -0700 |
commit | 3d97994549706f8f65fe9726b1fec1f0d643f822 (patch) | |
tree | 5c38046e9f2fbefd88bdfb55c38172d1c57c545b /gdb/testsuite/gdb.tui/resize.exp | |
parent | 2192a9d3b31a595eb7add928221d49334f32c06d (diff) | |
download | binutils-3d97994549706f8f65fe9726b1fec1f0d643f822.zip binutils-3d97994549706f8f65fe9726b1fec1f0d643f822.tar.gz binutils-3d97994549706f8f65fe9726b1fec1f0d643f822.tar.bz2 |
Re-apply the current layout when resizing
The TUI has separate code for each possible layout to handle the case
where the terminal window is resized. With the new layout code, this
can all be replaced with a call to tui_apply_current_layout, which
simply re-applies the current layout.
This results in some small differences in behavior when resizing, so
some tests are updated.
gdb/ChangeLog
2019-12-11 Tom Tromey <tom@tromey.com>
* tui/tui-win.c (tui_resize_all): Remove code, call
tui_apply_current_layout.
gdb/testsuite/ChangeLog
2019-12-11 Tom Tromey <tom@tromey.com>
* gdb.tui/resize.exp: Update.
* gdb.tui/empty.exp (layouts): Update.
Change-Id: I3dc6c02a753d495d9ab5e8213d550a147198ce6f
Diffstat (limited to 'gdb/testsuite/gdb.tui/resize.exp')
-rw-r--r-- | gdb/testsuite/gdb.tui/resize.exp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.tui/resize.exp b/gdb/testsuite/gdb.tui/resize.exp index 3b885e1..c530279 100644 --- a/gdb/testsuite/gdb.tui/resize.exp +++ b/gdb/testsuite/gdb.tui/resize.exp @@ -37,4 +37,4 @@ if {![Term::enter_tui]} { Term::check_contents "source at startup" ">|21 *return 0" Term::resize 40 90 -Term::check_box "source box after resize" 0 0 90 23 +Term::check_box "source box after resize" 0 0 90 26 |