patch 8.2.2908: crash when using a terminal popup window from cmdline window
Problem: Crash when using a terminal popup window from the cmdline window.
Solution: Instead of checking cmdwin_type call cmdwin_is_active().
(closes #8286)
diff --git a/src/errors.h b/src/errors.h
index d6e5dd1..00d395b 100644
--- a/src/errors.h
+++ b/src/errors.h
@@ -415,3 +415,5 @@
INIT(= N_("E1186: Expression does not result in a value: %s"));
EXTERN char e_failed_to_source_defaults[]
INIT(= N_("E1187: Failed to source defaults.vim"));
+EXTERN char e_cannot_open_terminal_from_command_line_window[]
+ INIT(= N_("E1188: Cannot open a terminal from the command line window"));