Skip to content

Commit ad652fc

Browse files
authored
fix(notify): bufhidden=wipe for notify buffers (#5517)
Closes #5514
1 parent 531c36f commit ad652fc

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

autoload/coc/float.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ function! coc#float#create_float_win(winid, bufnr, config) abort
120120
let lines = get(a:config, 'lines', v:null)
121121
let bufnr = a:bufnr
122122
try
123-
let bufnr = coc#float#create_buf(a:bufnr, lines, 'hide')
123+
let bufnr = coc#float#create_buf(a:bufnr, lines, get(a:config, 'bufhidden', 'hide'))
124124
catch /E523:/
125125
" happens when using getchar() #3921
126126
return []

autoload/coc/notify.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ function! coc#notify#create(lines, config) abort
207207
\ 'winblend': winblend,
208208
\ 'close': s:is_vim,
209209
\ 'border': border,
210+
\ 'bufhidden': 'wipe',
210211
\ })
211212
let result = coc#float#create_float_win(0, 0, opts)
212213
if empty(result)

0 commit comments

Comments
 (0)