Skip to content

Commit ac8f887

Browse files
mattnDima Chechetkin
authored andcommitted
Ignore setting properties on unloaded buffer
1 parent 3bc45c1 commit ac8f887

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/lsp/ui/vim/folding.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function! s:set_textprops(buf) abort
2525

2626
" Skip if the buffer doesn't exist. This might happen when a buffer is
2727
" opened and quickly deleted.
28-
if !bufexists(a:buf) | return | endif
28+
if !bufexists(a:buf) || !bufloaded(a:buf) | return | endif
2929

3030
" Create text property, if not already defined
3131
silent! call prop_type_add(s:textprop_name, {'bufnr': a:buf})

0 commit comments

Comments
 (0)