diff options
Diffstat (limited to 'gdb/tui')
-rw-r--r-- | gdb/tui/tui-data.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/tui/tui-data.c b/gdb/tui/tui-data.c index 190c687..6014dc5 100644 --- a/gdb/tui/tui-data.c +++ b/gdb/tui/tui-data.c @@ -370,7 +370,8 @@ tui_prev_win (struct tui_win_info *cur_win) type = cur_win->generic.type - 1; while (type != cur_win->generic.type && (prev == NULL)) { - if (tui_win_list[type]->generic.is_visible) + if (tui_win_list[type] + && tui_win_list[type]->generic.is_visible) prev = tui_win_list[type]; else { |