Brute force mapping jumps

This is supposed to happen on FileType git, but depending on autocommand
order, exists('b:git_dir') might erroneously fail.
This commit is contained in:
Tim Pope 2019-02-27 23:27:00 -05:00
parent a69b0b0fd6
commit 666c4abc12

View File

@ -1751,9 +1751,8 @@ function! fugitive#BufReadCmd(...) abort
setlocal filetype=git foldmethod=syntax
nnoremap <buffer> <silent> a :<C-U>let b:fugitive_display_format += v:count1<Bar>exe fugitive#BufReadCmd(@%)<CR>
nnoremap <buffer> <silent> i :<C-U>let b:fugitive_display_format -= v:count1<Bar>exe fugitive#BufReadCmd(@%)<CR>
else
call fugitive#MapJumps()
endif
call fugitive#MapJumps()
endtry
setlocal modifiable