Fix pseudo-job execution on Vim 7

Closes https://github.com/tpope/vim-fugitive/issues/1815
This commit is contained in:
Tim Pope
2021-08-20 08:54:43 -04:00
parent fd24cb2acd
commit 2f51a93e89

View File

@@ -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)