diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 0c99f38..9b9b94c 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -115,8 +115,32 @@ function! s:executable(binary) abort return s:executables[a:binary] endfunction -function! s:UserCommand() abort - return get(g:, 'fugitive_git_command', g:fugitive_git_executable) +function! s:map(mode, lhs, rhs, ...) abort + let flags = (a:0 ? a:1 : '') . (a:rhs =~# '' ? '' : '