0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 8.1.1500: wrong shell command when building with VIMDLL and "!" in 'go'

Problem:    Wrong shell command when building with VIMDLL and "!" in
            'guioptions'.
Solution:   Add check for GUI in use. (Ken Takata)
This commit is contained in:
Bram Moolenaar 2019-06-08 20:17:18 +02:00
parent 24a5ac5d4d
commit 21f8d93c71
2 changed files with 7 additions and 1 deletions

View File

@ -3253,7 +3253,11 @@ call_shell(char_u *cmd, int opt)
if (cmd == NULL || *p_sxq == NUL
#if defined(FEAT_GUI_MSWIN) && defined(FEAT_TERMINAL)
|| vim_strchr(p_go, GO_TERMINAL) != NULL
|| (
# ifdef VIMDLL
gui.in_use &&
# endif
vim_strchr(p_go, GO_TERMINAL) != NULL)
#endif
)
retval = mch_call_shell(cmd, opt);

View File

@ -767,6 +767,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1500,
/**/
1499,
/**/