Skip to content
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

goinfo improvements #759

Merged
merged 1 commit into from
Mar 14, 2016
Merged

goinfo improvements #759

merged 1 commit into from
Mar 14, 2016

Conversation

nhooyr
Copy link
Contributor

@nhooyr nhooyr commented Mar 10, 2016

Info() will not echo PANIC PANIC PANIC if it's called from the
autocommand.

@peterhellberg what do you think?

let result = go#complete#GetInfo()
if !empty(result)
if !empty(result) && (!a:auto && result ==# "PANIC PANIC PANIC")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please add a comment here what auto means and what Panic Panic Panic means? (I know what it is, but we have to much logic here and if someone else reads the code there is zero information)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that if condition didn't even work properly. I updated it now.

Info() will not echo PANIC PANIC PANIC if it's called from the
autocommand.
fatih added a commit that referenced this pull request Mar 14, 2016
@fatih fatih merged commit 86bb44e into fatih:master Mar 14, 2016
@fatih
Copy link
Owner

fatih commented Mar 14, 2016

Thanks @nhooyr

@nhooyr nhooyr deleted the info-improvements branch March 14, 2016 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants