From d859e05f0087ee9747bf5f79cced4f728cb0434d Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 31 Jul 2018 02:24:13 -0400 Subject: [PATCH] Really fix :Gcd Closes https://github.com/tpope/vim-fugitive/issues/1071 --- autoload/fugitive.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 3d25d52..ba0e482 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -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' s:fnameescape((empty(s:Tree() ? b:git_dir : s:Tree()) . '/' . ") -call s:command("-bar -bang -nargs=? -complete=customlist,s:DirComplete Glcd :exe 'lcd' s:fnameescape((empty(s:Tree() ? b:git_dir : s:Tree()) . '/' . ") +call s:command("-bar -bang -nargs=? -complete=customlist,s:DirComplete Gcd :exe 'cd' s:fnameescape((empty(s:Tree()) ? b:git_dir : s:Tree()) . '/' . )") +call s:command("-bar -bang -nargs=? -complete=customlist,s:DirComplete Glcd :exe 'lcd' s:fnameescape((empty(s:Tree()) ? b:git_dir : s:Tree()) . '/' . )") " Section: Gstatus