comparison 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
comparison
equal deleted inserted replaced
30540:e89c3310ad2a 30541:fdf704505754
5474 { 5474 {
5475 #ifdef FEAT_JOB_CHANNEL 5475 #ifdef FEAT_JOB_CHANNEL
5476 ch_log(NULL, "executing shell command: %s", cmd); 5476 ch_log(NULL, "executing shell command: %s", cmd);
5477 #endif 5477 #endif
5478 #if defined(FEAT_GUI) && defined(FEAT_TERMINAL) 5478 #if defined(FEAT_GUI) && defined(FEAT_TERMINAL)
5479 if (gui.in_use && vim_strchr(p_go, GO_TERMINAL) != NULL) 5479 if (gui.in_use && vim_strchr(p_go, GO_TERMINAL) != NULL
5480 && (options & SHELL_SILENT) == 0)
5480 return mch_call_shell_terminal(cmd, options); 5481 return mch_call_shell_terminal(cmd, options);
5481 #endif 5482 #endif
5482 #ifdef USE_SYSTEM 5483 #ifdef USE_SYSTEM
5483 return mch_call_shell_system(cmd, options); 5484 return mch_call_shell_system(cmd, options);
5484 #else 5485 #else