Skip to content

Commit 5277fc4

Browse files
Revert "only call prop_remove if we have props to avoid clearing of welcome message for vim (#1084)" (#1145)
This reverts commit 627dab0.
1 parent 9dc382c commit 5277fc4

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

autoload/lsp/internal/diagnostics/highlights.vim

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,8 @@ function! s:clear_all_highlights() abort
9393
try
9494
" TODO: need to check for valid range before calling prop_add
9595
" See https://github.com/prabirshrestha/vim-lsp/pull/721
96-
let l:prop_type = s:get_prop_type_name(l:severity)
97-
let l:props = prop_find({ 'type': l:prop_type, 'bufnr': l:bufnr })
98-
" if empty do not call prop_remove.
99-
" See https://github.com/prabirshrestha/vim-lsp/issues/1043
100-
if empty(l:props) | continue | endif
10196
silent! call prop_remove({
102-
\ 'type': l:prop_type,
97+
\ 'type': s:get_prop_type_name(l:severity),
10398
\ 'bufnr': l:bufnr,
10499
\ 'all': v:true })
105100
catch

0 commit comments

Comments
 (0)