mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-08 11:33:47 -05:00
Fix pseudo-job execution on Vim 7
Closes https://github.com/tpope/vim-fugitive/issues/1815
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user