patch 8.1.1492: MS-Windows: when "!" is in 'guioptions' ":!start" fails
Problem: MS-Windows: when "!" is in 'guioptions' ":!start" fails.
Solution: Do not use a terminal window when the shell command begins with
"!start". (Yasuhiro Matsumoto, closes #4504)
diff --git a/src/misc2.c b/src/misc2.c
index 2ac7f5e..45070d7 100644
--- a/src/misc2.c
+++ b/src/misc2.c
@@ -3251,7 +3251,11 @@
/* The external command may update a tags file, clear cached tags. */
tag_freematch();
- if (cmd == NULL || *p_sxq == NUL)
+ if (cmd == NULL || *p_sxq == NUL
+#if defined(FEAT_GUI_MSWIN) && defined(FEAT_TERMINAL)
+ || vim_strchr(p_go, GO_TERMINAL) != NULL
+#endif
+ )
retval = mch_call_shell(cmd, opt);
else
{