Skip to content

Commit 7cdbf04

Browse files
committed
return an identifier description from go#complete#GetInfo
Fixes #1904
1 parent a6e62dc commit 7cdbf04

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

autoload/go/complete.vim

+4-2
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ function! s:sync_info(auto)
183183
\ go#util#GetLines())
184184

185185
let result = s:info_filter(a:auto, result)
186-
call s:info_complete(a:auto, result)
186+
return s:info_complete(a:auto, result)
187187
endfunction
188188

189189
function! s:info_filter(auto, result) abort
@@ -221,9 +221,11 @@ function! s:info_filter(auto, result) abort
221221
endfunction
222222

223223
function! s:info_complete(auto, result) abort
224-
if !empty(a:result)
224+
if a:auto && !empty(a:result)
225225
echo "vim-go: " | echohl Function | echon a:result | echohl None
226226
endif
227+
228+
return a:result
227229
endfunction
228230

229231
function! s:trim_bracket(val) abort

0 commit comments

Comments
 (0)