diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-06-08 12:05:22 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-06-08 12:05:22 +0200 |
commit | 7c348bb5ad106cfa35dd45560c5ac5d3c8496c96 (patch) | |
tree | 3e785e6ea8495522d39fa893a819f341029721e8 /src/misc2.c | |
parent | 606407384144df73a6154aca1d77e071fe1b7651 (diff) |
patch 8.1.1492: MS-Windows: when "!" is in 'guioptions' ":!start" failsv8.1.1492
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)
Diffstat (limited to 'src/misc2.c')
-rw-r--r-- | src/misc2.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/misc2.c b/src/misc2.c index 2ac7f5e77c..45070d7197 100644 --- a/src/misc2.c +++ b/src/misc2.c @@ -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 { |