Skip to content

Commit

Permalink
Prefer s:GetVar() to get()
Browse files Browse the repository at this point in the history
Addresses review comment #767 (comment)
  • Loading branch information
rhysd committed Mar 23, 2019
1 parent 4c14bd4 commit 79e36ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion autoload/LanguageClient.vim
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,8 @@ function! s:GetVar(...) abort
endfunction

function! s:ShouldUseFloatWindow() abort
return s:FLOAT_WINDOW_AVAILABLE && get(g:, 'LanguageClient_useFloatingHover', 1)
let use = s:GetVar('LanguageClient_useFloatingHover')
return s:FLOAT_WINDOW_AVAILABLE && (use || use is v:null)
endfunction

function! s:CloseFloatingHoverOnCursorMove(win_id, opened) abort
Expand Down

0 comments on commit 79e36ba

Please sign in to comment.