mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-08 11:33:47 -05:00
Really fix :Gcd
Closes https://github.com/tpope/vim-fugitive/issues/1071
This commit is contained in:
@@ -1339,8 +1339,8 @@ function! s:DirComplete(A, L, P) abort
|
||||
return matches
|
||||
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 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 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>)")
|
||||
|
||||
" Section: Gstatus
|
||||
|
||||
|
||||
Reference in New Issue
Block a user