From 87c1bda4d5573185a1f79c42a919c4b62bc34c42 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sat, 25 Feb 2017 17:05:12 -0500 Subject: [PATCH] Fix implicit use of v: variable --- plugin/fugitive.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 67ae0be..66948f7 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -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