diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 7f38829..adb1e1e 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -564,7 +564,7 @@ function! s:Status() abort try Gpedit : wincmd P - nnoremap q :bwipe + nnoremap q :bdelete 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('$') == 1quitelsebwipeendif + nnoremap q :if bufnr('$') == 1quitelsebdeleteendif nnoremap R :edit catch /^fugitive:/ return 'echoerr v:errmsg'