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: do not remove highlights on delta when auto-highlighting #857

Merged
merged 1 commit into from
Apr 13, 2020

Conversation

myitcv
Copy link
Member

@myitcv myitcv commented Apr 13, 2020

In 3139f79 I incorrectly removed all reference highlights when a delta
is received. However, the logic prior to that change was that highlights
would only be moved (even in insert mode) if the cursor falls outside of
a highlighted range.

Therefore, we adopt exactly the logic that @leitzler proposed in #852 to
only remove highlights on delta if we are in manual highlighting mode.

In 3139f79 I incorrectly removed all reference highlights when a delta
is received. However, the logic prior to that change was that highlights
would only be moved (even in insert mode) if the cursor falls outside of
a highlighted range.

Therefore, we adopt exactly the logic that @leitzler proposed in #852 to
only remove highlights on delta if we are in manual highlighting mode.
@myitcv myitcv requested a review from leitzler April 13, 2020 11:04
Copy link
Member

@leitzler leitzler left a comment

Choose a reason for hiding this comment

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

LGTM

@myitcv
Copy link
Member Author

myitcv commented Apr 13, 2020

@leitzler approved above. Merging

@myitcv myitcv merged commit 9c78a05 into master Apr 13, 2020
@myitcv myitcv deleted the cmd_govim_fix_auto_highlighting branch April 13, 2020 12:21
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