diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index d4fd752..5017e11 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -219,7 +219,7 @@ function! s:Map(mode, lhs, rhs, ...) abort let head = substitute(head, '<[^<>]*>$\|.$', '', '') endwhile if !skip && (flags !~# '' || empty(mapcheck(head.tail, mode))) - call add(maps, mode.'map ' . s:nowait . flags . ' ' . head.tail . ' ' . a:rhs) + call add(maps, mode.'map ' . s:nowait . substitute(flags, '', '', '') . ' ' . head.tail . ' ' . a:rhs) if a:0 > 1 let b:undo_ftplugin = get(b:, 'undo_ftplugin', 'exe') . \ '|sil! exe "' . mode . 'unmap ' . head.tail . '"'