Relay stdin in s:StdoutFile() on Vim 7

Resolves: https://github.com/tpope/vim-fugitive/issues/2254
This commit is contained in:
Tim Pope
2024-01-17 18:43:05 -05:00
parent c4a38c92dc
commit ac673f1e08

View File

@@ -1007,7 +1007,7 @@ function! s:StdoutToFile(out, cmd, ...) abort
throw 'fugitive: Vim 8 or higher required to use ' . &shell
else
let cmd = fugitive#ShellCommand(a:cmd)
return s:SystemError(' (' . cmd . ' >' . (len(a:out) ? a:out : '/dev/null') . ') ')
return call('s:SystemError', [' (' . cmd . ' >' . (len(a:out) ? a:out : '/dev/null') . ') '] + a:000)
endif
endfunction