From 582eb0d3c90e9e6ebea994e1b8039cdae995b30f Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Mon, 31 Dec 2012 22:32:53 -0500 Subject: [PATCH] Fix supposed "Press ENTER" prompt Closes #189, #190. --- plugin/fugitive.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 722f6cf..6e0ea83 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -2037,8 +2037,8 @@ function! s:BufReadIndex() nunmap ~ nnoremap :execute StageNext(v:count1) nnoremap :execute StagePrevious(v:count1) - nnoremap - :execute StageToggle(line('.'),line('.')+v:count1-1) - xnoremap - :execute StageToggle(line("'<"),line("'>")) + nnoremap - :silent execute StageToggle(line('.'),line('.')+v:count1-1) + xnoremap - :silent execute StageToggle(line("'<"),line("'>")) nnoremap a :let b:fugitive_display_format += 1exe BufReadIndex() nnoremap i :let b:fugitive_display_format -= 1exe BufReadIndex() nnoremap C :Gcommit