Skip to content

Commit

Permalink
Do not reuse the existing buffer if it is wiped out.
Browse files Browse the repository at this point in the history
  • Loading branch information
skywind3000 committed Dec 27, 2024
1 parent fb89512 commit c39b83d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/quickui/core.vim
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ function! quickui#core#scratch_buffer(name, textlist)
else
let bid = -1
endif
if bid < 0
if bid < 0 || bufexists(bid) == 0
let bid = quickui#core#buffer_alloc()
if a:name != ''
let s:buffer_cache[a:name] = bid
Expand Down

0 comments on commit c39b83d

Please sign in to comment.