# HG changeset patch # User Bram Moolenaar # Date 1664290813 -7200 # Node ID fdf7045057541ff377c19c87d47eb9972f83db0e # Parent e89c3310ad2ad7af25e98d9b4ffccb9b992ebf7e patch 9.0.0606: system() opens a terminal window when "!" is in 'guioptions' Commit: https://github.com/vim/vim/commit/524c853e5ef0392fcf28e449946e05e7e3046e67 Author: Bram Moolenaar Date: Tue Sep 27 15:48:20 2022 +0100 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) diff --git a/src/os_unix.c b/src/os_unix.c --- a/src/os_unix.c +++ b/src/os_unix.c @@ -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 diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -700,6 +700,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 606, +/**/ 605, /**/ 604,