]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtimei(vim9): Always launch programs in background (linux)
authorMateo Gjika <104777599+mateoxh@users.noreply.github.com>
Tue, 3 Feb 2026 15:24:26 +0000 (15:24 +0000)
committerChristian Brabandt <cb@256bit.org>
Tue, 3 Feb 2026 15:24:26 +0000 (15:24 +0000)
closes: #19293

Signed-off-by: Mateo Gjika <104777599+mateoxh@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/autoload/dist/vim9.vim

index 53385e08244b67ab8f99fc7f77ac9e1325f50585..ece21db65d3b66b7755b801b253924f7e7168817 100644 (file)
@@ -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')