mirror of
https://github.com/tpope/vim-fugitive.git
synced 2026-10-15 02:31:15 +08:00
Fix command preparation when no arguments, only flags
This commit is contained in:
1 parent
35872c5dca
commit
8e4a677c7f
1 file changed
+1
-1
@@ -485,7 +485,7 @@ function! fugitive#PrepareDirEnvGitFlagsArgs(...) abort
|
||||
let dir = s:Dir()
|
||||
endif
|
||||
call s:PreparePathArgs(cmd, dir, !exists('explicit_pathspec_option'))
|
||||
return [dir, env, git, cmd[0 : -arg_count-1], cmd[-arg_count : -1]]
|
||||
return [dir, env, git, cmd[0 : -arg_count-1], arg_count ? cmd[-arg_count : -1] : []]
|
||||
endfunction
|
||||
|
||||
function! s:BuildEnvPrefix(env) abort
|
||||
|
||||
Reference in new issue
Block a user