diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 04ed1e9..be22420 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -3188,12 +3188,12 @@ function! fugitive#BufReadCmd(...) abort setlocal bufhidden=delete endif let &l:modifiable = modifiable + call fugitive#MapJumps() if b:fugitive_type !=# 'blob' - setlocal filetype=git call s:Map('n', 'a', ":let b:fugitive_display_format += v:count1exe fugitive#BufReadCmd(@%)", '') call s:Map('n', 'i', ":let b:fugitive_display_format -= v:count1exe fugitive#BufReadCmd(@%)", '') + setlocal filetype=git endif - call fugitive#MapJumps() endtry setlocal modifiable