Comments
Patch
@@ -1,5 +1,10 @@
2019-12-01 Tom Tromey <tom@tromey.com>
+ * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
+ specially.
+
+2019-12-01 Tom Tromey <tom@tromey.com>
+
* tui/tui-winsource.c (tui_copy_source_line): Don't advance past
\0.
* unittests/tui-selftests.c: New file.
@@ -847,6 +847,12 @@
static void
tui_all_windows_info (const char *arg, int from_tty)
{
+ if (!tui_active)
+ {
+ printf_filtered (_("The TUI is not active.\n"));
+ return;
+ }
+
struct tui_win_info *win_with_focus = tui_win_with_focus ();
struct ui_out *uiout = current_uiout;