runtimei(vim9): Always launch programs in background (linux)
Commit:
https://github.com/vim/vim/commit/4b83d5ca76573373c0b57238b221a6a504bdb50b
Author: Mateo Gjika <
10477759...@users.noreply.github.com>
Date: Tue Feb 3 15:24:26 2026 +0000
runtimei(vim9): Always launch programs in background (linux)
closes:
https://github.com/vim/vim/issues/19293
Signed-off-by: Mateo Gjika <
10477759...@users.noreply.github.com>
Signed-off-by: Christian Brabandt <
c...@256bit.org>
diff --git a/runtime/autoload/dist/vim9.vim b/runtime/autoload/dist/vim9.vim
index 53385e082..ece21db65 100644
--- a/runtime/autoload/dist/vim9.vim
+++ b/runtime/autoload/dist/vim9.vim
@@ -3,7 +3,7 @@ vim9script
# Vim runtime support library
#
# Maintainer: The Vim Project <
https://github.com/vim/vim>
-# Last Change: 2025 Dec 21
+# Last Change: 2026 Jan 31
export def IsSafeExecutable(filetype: string, executable: string): bool
if empty(exepath(executable))
@@ -60,8 +60,7 @@ if has('unix')
enddef
else
export def Launch(args: string)
- const fork = has('gui_running') ? '&' : ''
- execute $':silent ! nohup {args} {Redir()} {fork}' | redraw!
+ execute $':silent ! nohup {args} {Redir()} &' | redraw!
enddef
endif
elseif has('win32')