]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Don't let TUI focus on locator
authorTom Tromey <tromey@adacore.com>
Wed, 23 Sep 2020 18:57:19 +0000 (12:57 -0600)
committerTom Tromey <tromey@adacore.com>
Thu, 24 Sep 2020 19:03:18 +0000 (13:03 -0600)
commit8ccf2a20fbfe4b4a4199709b999ce3b601a9065a
tree6001b29b99a571d272a32c5edbf69d8168c98d61
parent642ed0e9ecf4e5fe526bd3ad6d697008e1dba51d
Don't let TUI focus on locator

PR tui/26638 notes that the C-x o binding can put the focus on the
locator window.  However, this is not useful and did not happen
historically.  This patch changes the TUI to skip this window when
switching focus.

2020-09-24  Tom Tromey  <tromey@adacore.com>

PR tui/26638:
* tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
method.
* tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
* tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
(tui_prev_win): Rewrite.

gdb/testsuite/ChangeLog
2020-09-24  Tom Tromey  <tromey@adacore.com>

PR tui/26638:
* gdb.tui/list.exp: Check output of "focus next".
gdb/ChangeLog
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.tui/list.exp
gdb/tui/tui-data.c
gdb/tui/tui-data.h
gdb/tui/tui-stack.h