Skip to content

Commit

Permalink
return an identifier description from go#complete#GetInfo
Browse files Browse the repository at this point in the history
Fixes #1904
  • Loading branch information
bhcleek committed Aug 2, 2018
1 parent a6e62dc commit 7cdbf04
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions autoload/go/complete.vim
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ function! s:sync_info(auto)
\ go#util#GetLines())

let result = s:info_filter(a:auto, result)
call s:info_complete(a:auto, result)
return s:info_complete(a:auto, result)
endfunction

function! s:info_filter(auto, result) abort
Expand Down Expand Up @@ -221,9 +221,11 @@ function! s:info_filter(auto, result) abort
endfunction

function! s:info_complete(auto, result) abort
if !empty(a:result)
if a:auto && !empty(a:result)
echo "vim-go: " | echohl Function | echon a:result | echohl None
endif

return a:result
endfunction

function! s:trim_bracket(val) abort
Expand Down

0 comments on commit 7cdbf04

Please sign in to comment.