mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 13:53:51 -05:00
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:
@@ -1751,9 +1751,8 @@ function! fugitive#BufReadCmd(...) abort
|
|||||||
setlocal filetype=git foldmethod=syntax
|
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> 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>
|
nnoremap <buffer> <silent> i :<C-U>let b:fugitive_display_format -= v:count1<Bar>exe fugitive#BufReadCmd(@%)<CR>
|
||||||
else
|
|
||||||
call fugitive#MapJumps()
|
|
||||||
endif
|
endif
|
||||||
|
call fugitive#MapJumps()
|
||||||
endtry
|
endtry
|
||||||
|
|
||||||
setlocal modifiable
|
setlocal modifiable
|
||||||
|
|||||||
Reference in New Issue
Block a user