changeset 30541:fdf704505754 v9.0.0606

patch 9.0.0606: system() opens a terminal window when "!" is in 'guioptions' Commit: https://github.com/vim/vim/commit/524c853e5ef0392fcf28e449946e05e7e3046e67 Author: Bram Moolenaar <Bram@vim.org> 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)
author Bram Moolenaar <Bram@vim.org>
date Tue, 27 Sep 2022 17:00:13 +0200
parents e89c3310ad2a
children 1fa379014510
files src/os_unix.c src/version.c
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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,