Introduce can_scroll method
authorTom Tromey <tom@tromey.com>
Mon, 24 Jun 2019 02:39:57 +0000 (20:39 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 17 Jul 2019 18:18:51 +0000 (12:18 -0600)
commit06210ce428ad74c28fd94f7ea3800b79791cdefa
treefeb0e94f60bb2db4caf20296412cb0e9bf3eaee8
parent381befeedf9316991d47f4213850545a96593d23
Introduce can_scroll method

This introduces a "can_scroll" method, removing a spot that explicitly
checks a window's type.

gdb/ChangeLog
2019-07-17  Tom Tromey  <tom@tromey.com>

* tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
(struct tui_cmd_window) <can_scroll>: New method.
* tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
method.
gdb/ChangeLog
gdb/tui/tui-command.c
gdb/tui/tui-data.h
This page took 0.025602 seconds and 4 git commands to generate.