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

allow :GoDoc on modified buffers #1014

Merged
merged 2 commits into from
Aug 27, 2016
Merged

Conversation

bhcleek
Copy link
Collaborator

@bhcleek bhcleek commented Aug 17, 2016

Support getting documentation for the identifier under the cursor in a modified buffer.


if &modified
let sep = go#util#LineEnding()
let content = join(getline(1, '$'), sep )
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 remove the whitespace after sep

@fatih
Copy link
Owner

fatih commented Aug 20, 2016

Thanks @bhcleek, I've tested it locally and it works flawlessly. I just have some minor comments. Once they are fixed let me know and I'll merge it 👍

Trim unnecessary whitespace and add a comment to go#doc#Open to clarify
its use of gogetdoc's -modified flag.
@bhcleek
Copy link
Collaborator Author

bhcleek commented Aug 22, 2016

PTAL

@fatih fatih merged commit 8de252a into fatih:master Aug 27, 2016
@fatih
Copy link
Owner

fatih commented Aug 27, 2016

Thanks @bhcleek 👍

@bhcleek bhcleek deleted the godoc-modified-buffer branch December 28, 2016 23:11
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