1
0
forked from aniani/vim

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)
This commit is contained in:
Bram Moolenaar
2019-06-08 12:05:22 +02:00
parent 6064073841
commit 7c348bb5ad
3 changed files with 24 additions and 8 deletions

View File

@@ -3251,7 +3251,11 @@ call_shell(char_u *cmd, int opt)
/* 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
{