mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 21:33:53 -05:00
Fix implicit use of v: variable
This commit is contained in:
@@ -1060,14 +1060,14 @@ function! s:Commit(args, ...) abort
|
|||||||
else
|
else
|
||||||
noautocmd silent execute '!'.command.' > '.outfile.' 2> '.errorfile
|
noautocmd silent execute '!'.command.' > '.outfile.' 2> '.errorfile
|
||||||
endif
|
endif
|
||||||
let shell_error = v:shell_error
|
let error = v:shell_error
|
||||||
finally
|
finally
|
||||||
execute cd.'`=dir`'
|
execute cd.'`=dir`'
|
||||||
endtry
|
endtry
|
||||||
if !has('gui_running')
|
if !has('gui_running')
|
||||||
redraw!
|
redraw!
|
||||||
endif
|
endif
|
||||||
if !shell_error
|
if !error
|
||||||
if filereadable(outfile)
|
if filereadable(outfile)
|
||||||
for line in readfile(outfile)
|
for line in readfile(outfile)
|
||||||
echo line
|
echo line
|
||||||
|
|||||||
Reference in New Issue
Block a user