Skip to content

Commit b5accd9

Browse files
authored
Merge pull request #2339 from liaoishere/bugfix/gopls-goinfo-syntax
Check list length before handling the godoc result
2 parents 2d2f5b3 + d88daf4 commit b5accd9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

autoload/go/lsp.vim

+4
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,10 @@ function! s:info(show, content) abort dict
619619
endfunction
620620

621621
function! s:infoFromHoverContent(content) abort
622+
if len(a:content) < 1
623+
return ''
624+
endif
625+
622626
let l:content = a:content[0]
623627

624628
" strip godoc summary

0 commit comments

Comments
 (0)