From: Bram Moolenaar Date: Sat, 8 Jun 2019 18:17:18 +0000 (+0200) Subject: patch 8.1.1500: wrong shell command when building with VIMDLL and "!" in 'go' X-Git-Tag: v8.1.1500 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=21f8d93c7184e69aa76a5caa1d3869b6226189e0;p=vim 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) --- diff --git a/src/misc2.c b/src/misc2.c index 45070d719..47b3c7299 100644 --- a/src/misc2.c +++ b/src/misc2.c @@ -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); diff --git a/src/version.c b/src/version.c index 6635610f9..b0dcd3b11 100644 --- a/src/version.c +++ b/src/version.c @@ -767,6 +767,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1500, /**/ 1499, /**/