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