mirror of
https://github.com/tpope/vim-fugitive.git
synced 2026-08-12 19:11:36 +08: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
|
endtry
|
||||||
call delete(temp)
|
call delete(temp)
|
||||||
if s:cpath(fnamemodify(bufname('$'), ':p'), temp)
|
if s:cpath(fnamemodify(bufname('$'), ':p'), temp)
|
||||||
silent execute 'bwipeout '.bufnr('$')
|
silent! execute 'bwipeout '.bufnr('$')
|
||||||
endif
|
endif
|
||||||
endtry
|
endtry
|
||||||
endfunction
|
endfunction
|
||||||
|
|||||||
Reference in New Issue
Block a user