Skip to content

Commit c39b83d

Browse files
author
skywind3000
committed
Do not reuse the existing buffer if it is wiped out.
1 parent fb89512 commit c39b83d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/quickui/core.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ function! quickui#core#scratch_buffer(name, textlist)
470470
else
471471
let bid = -1
472472
endif
473-
if bid < 0
473+
if bid < 0 || bufexists(bid) == 0
474474
let bid = quickui#core#buffer_alloc()
475475
if a:name != ''
476476
let s:buffer_cache[a:name] = bid

0 commit comments

Comments
 (0)