]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(netrw): do not detach when launching external programs in gvim
authorKonfekt <Konfekt@users.noreply.github.com>
Wed, 4 Dec 2024 19:12:44 +0000 (20:12 +0100)
committerChristian Brabandt <cb@256bit.org>
Wed, 4 Dec 2024 19:12:44 +0000 (20:12 +0100)
On Debian 12 when detaching the program wouldn't launch at all

closes: #16168

Signed-off-by: Konfekt <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/autoload/netrw.vim

index f920c64f8d6d8c30e96e2196c2297a5ef4adf042..9650f6dffb6004162fb37e08910840375d891198 100644 (file)
@@ -38,6 +38,7 @@
 "   2024 Nov 14 by Vim Project: small fixes to netrw#BrowseX (#16056)
 "   2024 Nov 23 by Vim Project: update decompress defaults (#16104)
 "   2024 Nov 23 by Vim Project: fix powershell escaping issues (#16094)
+"   2024 Dec 04 by Vim Project: do not detach for gvim (#16168)
 "   }}}
 " Former Maintainer:   Charles E Campbell
 " GetLatestVimScripts: 1075 1 :AutoInstall: netrw.vim
@@ -5045,7 +5046,7 @@ if has('unix')
   endfun
  else
   fun! netrw#Launch(args)
-    exe ':silent ! nohup' a:args s:redir() '&' | redraw!
+    exe ':silent ! nohup' a:args s:redir() (has('gui_running') ? '' : '&') | redraw!
   endfun
  endif
 elseif has('win32')