From 21f8d93c7184e69aa76a5caa1d3869b6226189e0 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 8 Jun 2019 20:17:18 +0200 Subject: 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) --- src/misc2.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/misc2.c') 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); -- cgit v1.2.1