diff options
author | Hannes Domani <ssbssa@yahoo.de> | 2020-11-19 16:49:53 +0100 |
---|---|---|
committer | Hannes Domani <ssbssa@yahoo.de> | 2020-11-29 18:47:38 +0100 |
commit | 96fb90861a4ebd78358ade2426d533f09bee129a (patch) | |
tree | 0e467a6cbafdbdb26c0a242647f43da19f8ae2be /gdb/tui | |
parent | 632ee6fd822f8264edc5935c4e31955849df8ba2 (diff) | |
download | gdb-96fb90861a4ebd78358ade2426d533f09bee129a.zip gdb-96fb90861a4ebd78358ade2426d533f09bee129a.tar.gz gdb-96fb90861a4ebd78358ade2426d533f09bee129a.tar.bz2 |
Don't delete the locator win info
The locator win info is special because it is static, all the others are
created dynamically.
gdb/ChangeLog:
2020-11-29 Hannes Domani <ssbssa@yahoo.de>
PR tui/26973
* tui/tui-layout.c (tui_apply_current_layout): Don't delete the
static locator win info.
Diffstat (limited to 'gdb/tui')
-rw-r--r-- | gdb/tui/tui-layout.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/tui/tui-layout.c b/gdb/tui/tui-layout.c index a568fa6..2dd7c3d 100644 --- a/gdb/tui/tui-layout.c +++ b/gdb/tui/tui-layout.c @@ -98,13 +98,15 @@ tui_apply_current_layout () /* Now delete any window that was not re-applied. */ tui_win_info *focus = tui_win_with_focus (); + tui_win_info *locator = tui_locator_win_info_ptr (); for (tui_win_info *win_info : saved_tui_windows) { if (!win_info->is_visible ()) { if (focus == win_info) tui_set_win_focus_to (tui_windows[0]); - delete win_info; + if (win_info != locator) + delete win_info; } } |