From c872a546751f1723766479528391cdada4aeb1ec Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Mon, 9 May 2011 20:05:50 -0400 Subject: [PATCH] Fix :Gcommit % --- plugin/fugitive.vim | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 8655fc2..241a05a 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -728,13 +728,14 @@ function! s:Commit(args) abort endif let command .= s:repo().git_command('commit').' '.a:args if &shell =~# 'csh' - call system('(('.command.' > '.outfile.') >& '.errorfile.')') + silent execute '!('.command.' > '.outfile.') >& '.errorfile elseif a:args =~# '\%(^\| \)--interactive\>' execute '!'.command.' 2> '.errorfile - elseif shell =~# 'cmd' - silent execute '!'.command.' > '.outfile.' 2> '.errorfile else - call system(command.' > '.outfile.' 2> '.errorfile) + silent execute '!'.command.' > '.outfile.' 2> '.errorfile + endif + if !has('gui_running') + redraw! endif if !v:shell_error if filereadable(outfile)