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:
parent
439a2ba174
commit
524c853e5e
@ -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
|
||||
|
@ -699,6 +699,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
606,
|
||||
/**/
|
||||
605,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user