mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-14 06:13:51 -05:00
Don't error if we can't :bwipeout
References https://github.com/tpope/vim-fugitive/issues/1418
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user