Problem: system() opens a terminal window when using the GUI and "!" is in
'guioptions'.
Solution: Do not use a terminal window when the SHELL_SILENT flag is used.
(closes #11202)
ch_log(NULL, "executing shell command: %s", cmd);
#endif
#if defined(FEAT_GUI) && defined(FEAT_TERMINAL)
- if (gui.in_use && vim_strchr(p_go, GO_TERMINAL) != NULL)
+ if (gui.in_use && vim_strchr(p_go, GO_TERMINAL) != NULL
+ && (options & SHELL_SILENT) == 0)
return mch_call_shell_terminal(cmd, options);
#endif
#ifdef USE_SYSTEM
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 606,
/**/
605,
/**/