Really fix :Gcd

Closes https://github.com/tpope/vim-fugitive/issues/1071
This commit is contained in:
Tim Pope
2018-07-31 02:24:13 -04:00
parent 3feda7f440
commit d859e05f00

View File

@@ -1339,8 +1339,8 @@ function! s:DirComplete(A, L, P) abort
return matches return matches
endfunction endfunction
call s:command("-bar -bang -nargs=? -complete=customlist,s:DirComplete Gcd :exe 'cd<bang>' s:fnameescape((empty(s:Tree() ? b:git_dir : s:Tree()) . '/' . <q-args>") call s:command("-bar -bang -nargs=? -complete=customlist,s:DirComplete Gcd :exe 'cd<bang>' s:fnameescape((empty(s:Tree()) ? b:git_dir : s:Tree()) . '/' . <q-args>)")
call s:command("-bar -bang -nargs=? -complete=customlist,s:DirComplete Glcd :exe 'lcd<bang>' s:fnameescape((empty(s:Tree() ? b:git_dir : s:Tree()) . '/' . <q-args>") call s:command("-bar -bang -nargs=? -complete=customlist,s:DirComplete Glcd :exe 'lcd<bang>' s:fnameescape((empty(s:Tree()) ? b:git_dir : s:Tree()) . '/' . <q-args>)")
" Section: Gstatus " Section: Gstatus