Skip to content

Commit 159e8de

Browse files
authored
Merge pull request #4298 from ZaharChernenko/fix/ycm_hover-safety-check
fix: Add safety check for b:ycm_hover
2 parents 5110798 + 79b7e54 commit 159e8de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/youcompleteme.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1665,7 +1665,7 @@ if exists( '*popup_atcursor' )
16651665
function! s:ShowHoverResult( response )
16661666
call popup_hide( s:cursorhold_popup )
16671667

1668-
if empty( a:response )
1668+
if empty( a:response ) || !exists( 'b:ycm_hover' )
16691669
return
16701670
endif
16711671

0 commit comments

Comments
 (0)