Provide g:fugitive_defer_to_existing_maps

References: https://github.com/tpope/vim-fugitive/issues/1425
This commit is contained in:
Tim Pope
2022-03-25 18:07:25 -04:00
parent b6405d8908
commit 8157efff49
2 changed files with 3 additions and 3 deletions

View File

@@ -725,7 +725,7 @@ function! s:Map(mode, lhs, rhs, flags) abort
let head = substitute(head, '<[^<>]*>$\|.$', '', '')
endwhile
endif
if flags !~# '<unique>' || empty(mapcheck(head.tail, a:mode))
if empty(mapcheck(head.tail, a:mode))
exe a:mode.'map' s:nowait flags head.tail a:rhs
endif
endfunction