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:
parent
a69b0b0fd6
commit
666c4abc12
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user