From 2f51a93e89b238957f9b4b8c84dba67892c9ac80 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Fri, 20 Aug 2021 08:54:43 -0400 Subject: [PATCH] Fix pseudo-job execution on Vim 7 Closes https://github.com/tpope/vim-fugitive/issues/1815 --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 03ce515..5804ada 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -312,7 +312,7 @@ function! s:JobExecute(argv, jopts, callback, ...) abort elseif &shell !~# 'sh' || &shell =~# 'fish\|\%(powershell\|pwsh\)\%(\.exe\)\=$' throw 'fugitive: Vim 8 or higher required to use ' . &shell else - let cmd = fugitive#ShellCommand(args) + let cmd = s:shellesc(a:argv) let outfile = tempname() try let dict.stderr = split(system(' (' . cmd . ' >' . outfile . ') '), "\n", 1)