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

Add "comment" mode #4

Merged
merged 2 commits into from
Apr 8, 2018
Merged

Add "comment" mode #4

merged 2 commits into from
Apr 8, 2018

Conversation

arp242
Copy link
Contributor

@arp242 arp242 commented Apr 8, 2018

This is useful to get the start/end information for a comment block, so
an "ac" ("a comment") textobj can be added to vim-go.

This is useful to get the start/end information for a comment block, so
an "ac" ("a comment") textobj can be added to vim-go.
.travis.yml Outdated
go:
- 1.6
go:
- 1.7
Copy link
Owner

Choose a reason for hiding this comment

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

While you're at, can you can change this to 1.10.x ?

}

if err != nil {
return
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 fail here with t.Fatalf ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The error is already checked above. This is just to prevent a nil pointer reference in out.Comment below in the tests where we expect err to be non-nil.

@fatih fatih merged commit 218875e into fatih:master Apr 8, 2018
@fatih
Copy link
Owner

fatih commented Apr 8, 2018

Thanks @Carpetsmoker

@arp242 arp242 deleted the comment branch April 8, 2018 21:17
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