From f4ce562c7f7a95cab61bf298d289cd56f0802a95 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sat, 6 Jul 2019 16:28:46 -0600 Subject: Minor simplification in tui_default_win_viewport_height tui_default_win_viewport_height doesn't need to look at tui_win_list; it can simply check the type directly. gdb/ChangeLog 2019-08-15 Tom Tromey * tui/tui-layout.c (tui_default_win_viewport_height): Don't examine tui_win_list. --- gdb/tui/tui-layout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/tui') diff --git a/gdb/tui/tui-layout.c b/gdb/tui/tui-layout.c index c2abcf4..d10c9a0 100644 --- a/gdb/tui/tui-layout.c +++ b/gdb/tui/tui-layout.c @@ -304,7 +304,7 @@ tui_default_win_viewport_height (enum tui_win_type type, h = tui_default_win_height (type, layout); - if (tui_win_list[type] == TUI_CMD_WIN) + if (type == CMD_WIN) h -= 1; else h -= 2; -- cgit v1.1