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

patch 9.0.0606: system() opens a terminal window when "!" is in 'guioptions'

Problem:    system() opens a terminal window when using the GUI and "!" is in
            'guioptions'.
Solution:   Do not use a terminal window when the SHELL_SILENT flag is used.
            (closes #11202)
This commit is contained in:
Bram Moolenaar 2022-09-27 15:48:20 +01:00
parent 439a2ba174
commit 524c853e5e
2 changed files with 4 additions and 1 deletions

View File

@ -5476,7 +5476,8 @@ mch_call_shell(
ch_log(NULL, "executing shell command: %s", cmd);
#endif
#if defined(FEAT_GUI) && defined(FEAT_TERMINAL)
if (gui.in_use && vim_strchr(p_go, GO_TERMINAL) != NULL)
if (gui.in_use && vim_strchr(p_go, GO_TERMINAL) != NULL
&& (options & SHELL_SILENT) == 0)
return mch_call_shell_terminal(cmd, options);
#endif
#ifdef USE_SYSTEM

View File

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