From ac673f1e08dcbdee534564aaf5151283c25b7263 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 17 Jan 2024 18:43:05 -0500 Subject: [PATCH] Relay stdin in s:StdoutFile() on Vim 7 Resolves: https://github.com/tpope/vim-fugitive/issues/2254 --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 9b6363e..09a599f 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -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