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:
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user