Don't error if we can't :bwipeout

References https://github.com/tpope/vim-fugitive/issues/1418
This commit is contained in:
Tim Pope
2019-12-19 13:52:02 -05:00
parent b68b6d4329
commit 7848779d3b

View File

@@ -1559,7 +1559,7 @@ function! s:ReplaceCmd(cmd) abort
endtry
call delete(temp)
if s:cpath(fnamemodify(bufname('$'), ':p'), temp)
silent execute 'bwipeout '.bufnr('$')
silent! execute 'bwipeout '.bufnr('$')
endif
endtry
endfunction