From ea3b4a73155203dd484b62872814a91df39dbf9f Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Fri, 2 Sep 2011 14:56:49 -0400 Subject: [PATCH] Partial workaround for symlinked .git Closes #105 --- plugin/fugitive.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index f775064..4d8fd4e 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -564,7 +564,7 @@ function! s:Status() abort try Gpedit : wincmd P - nnoremap q :bdelete + nnoremap q :bwipe catch /^fugitive:/ return 'echoerr v:errmsg' endtry @@ -1816,7 +1816,7 @@ function! s:BufReadIndex() nnoremap dv :execute StageDiff('Gvdiff') nnoremap p :execute StagePatch(line('.'),line('.')+v:count1-1) xnoremap p :execute StagePatch(line("'<"),line("'>")) - nnoremap q :if bufnr('$') == 1quitelsebdeleteendif + nnoremap q :if bufnr('$') == 1quitelsebwipeendif nnoremap R :edit catch /^fugitive:/ return 'echoerr v:errmsg'