diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 0b11304..1c877c7 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -2278,13 +2278,16 @@ function! s:Do(action, visual) abort if status < 0 execute record.lnum + 1 endif - call s:StageReveal() + let success = 1 catch /^fugitive:/ return 'echoerr v:errmsg' finally if reload execute s:ReloadStatus() endif + if exists('success') + call s:StageReveal() + endif endtry return '' endfunction