Skip to content

Commit 29c54a7

Browse files
authored
Merge pull request #1905 from bhcleek/fix-get-info
return an identifier description from go#complete#GetInfo
2 parents a35be47 + 7cdbf04 commit 29c54a7

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)