Skip to content

Commit 79b7e54

Browse files
ZaharChernenkopuremourning
authored andcommitted
fix: Add safety check for b:ycm_hover
1 parent 5110798 commit 79b7e54

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)