-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GetInfo() echoes its result instead of a string return #1904
Comments
@bhcleek Your branch returns 0 and still echoes the contents. If I comment out LL224-226 the echo part is gone, but the return is printed out as 0 anyways. To clarify, according to docs
|
Thanks for teseting @illotum . I amended the PR. Can you try again? |
This one works, thank you! If I may piggyback, related question: For some reason, status is being properly filled through this function! GoStatus()
let l:status = exists('*go#statusline#Show') ? go#statusline#Show() : 'S'
let l:info = exists('*go#complete#GetInfo') ? go#complete#GetInfo() : 'L'
" let l:info = go#complete#GetInfo()
return printf('%s %s', l:status, l:info)
endfunction |
It's probably because at the time |
What did you do? (required. The issue will be closed when not provided.)
Assigned
go#complete#GetInfo()
to a variable.What did you expect to happen?
String variable and no echo.
What happened instead?
GetInfo end up calling s:info_complete and the result is echoed.
This must be a fairly recent regression, I used this exact setup about a year ago successfully.
Configuration (MUST fill this out):
vim-go version: a6e62dc
vimrc
you used to reproduce: https://gist.github.com/illotum/ae87de1033c9ad33e6e2ad77e112b87cVim version (first three lines from
:version
):go version
):go env
):The text was updated successfully, but these errors were encountered: