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

cmd/govim: extract text property removal to own func #737

Merged
merged 1 commit into from
Jan 30, 2020

Conversation

leitzler
Copy link
Member

This change extracts text property removal to it's own func.

It acts as gardening for implementing references highlights where we'll
start using another text property ID, and therefore it is added as an
internal type.

@leitzler leitzler requested a review from myitcv January 29, 2020 07:12
@leitzler leitzler force-pushed the cmd_govim_highlight_gardening branch from ccfeb82 to 85a6e27 Compare January 30, 2020 20:08
This change extracts text property removal to it's own func.

It acts as gardening for implementing references highlights where we'll
start using another text property ID, and therefore it is added as an
internal type.

A new batch method is also added, BatchStartIfNeeded() that is used to
prevent unnecessary round trips to vim when calling a function that
might or might not be within a batch scope already.
@leitzler leitzler force-pushed the cmd_govim_highlight_gardening branch from 85a6e27 to c344c55 Compare January 30, 2020 22:43
Copy link
Member

@myitcv myitcv left a comment

Choose a reason for hiding this comment

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

LGTM if build passes - we can tidy up batching later.

@leitzler leitzler merged commit 0465c13 into master Jan 30, 2020
@leitzler leitzler deleted the cmd_govim_highlight_gardening branch January 30, 2020 23:10
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.

None yet

2 participants