From 3feda7f440b2e992691a8f6b9b8ef1e161670d61 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 31 Jul 2018 01:00:03 -0400 Subject: [PATCH] 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 00bf8a0..3d25d52 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