commit 2016ce1db416a362d6ebcc91eb936256c4199646 (tree)
parent 2b37219021e9a38b0ae959467ee01e7b76c971e7
Author: Tim Pope <code@tpope.net>
Date: Tue, 31 Aug 2021 16:32:48 -0400
Fix check for maps disabled by dictionary
Resolves: https://github.com/tpope/vim-fugitive/issues/1822
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim
@@ -218,7 +218,7 @@ function! s:Map(mode, lhs, rhs, ...) abort
let tail = matchstr(head, '<[^<>]*>$\|.$') . tail
let head = substitute(head, '<[^<>]*>$\|.$', '', '')
endwhile
- if !skip && flags !~# '<unique>' || empty(mapcheck(head.tail, mode))
+ if !skip && (flags !~# '<unique>' || empty(mapcheck(head.tail, mode)))
call add(maps, mode.'map <buffer>' . s:nowait . flags . ' ' . head.tail . ' ' . a:rhs)
if a:0 > 1
let b:undo_ftplugin = get(b:, 'undo_ftplugin', 'exe') .