mirror of
https://github.com/tpope/vim-fugitive.git
synced 2026-10-04 01:13:51 +08:00
Ensure v:shell_error comes from correct command
Closes https://github.com/tpope/vim-fugitive/issues/648
This commit is contained in:
1 parent
f44845e440
commit
c5c1bd66d8
1 file changed
+2
-1
+2
-1
@@ -1060,13 +1060,14 @@ function! s:Commit(args, ...) abort
|
||||
else
|
||||
noautocmd silent execute '!'.command.' > '.outfile.' 2> '.errorfile
|
||||
endif
|
||||
let shell_error = v:shell_error
|
||||
finally
|
||||
execute cd.'`=dir`'
|
||||
endtry
|
||||
if !has('gui_running')
|
||||
redraw!
|
||||
endif
|
||||
if !v:shell_error
|
||||
if !shell_error
|
||||
if filereadable(outfile)
|
||||
for line in readfile(outfile)
|
||||
echo line
|
||||
|
||||
Reference in new issue
Block a user