Merge pull request #2319 from idbrii/lsp-hide-when-nothing

Return nothing when there is no lsp-progress
This commit is contained in:
Christian Brabandt 2021-01-14 10:17:20 +01:00 committed by GitHub
commit c7a633ce8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -80,9 +80,9 @@ function! airline#extensions#lsp#progress() abort
let message = airline#util#shorten(s:lsp_progress['message'] . percent, 91, 9) let message = airline#util#shorten(s:lsp_progress['message'] . percent, 91, 9)
return s:lsp_progress['server'] . ':' . s:title . ' ' . message return s:lsp_progress['server'] . ':' . s:title . ' ' . message
endif endif
endif
endif
return '' return ''
endif
endif
endfunction endfunction
let s:timer = 0 let s:timer = 0