diff src/os_unix.c @ 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 d45ee1f829ba
children ae1113e53ce3
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