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

sameids: fix trailing identifier highlighting #3606

Merged
merged 3 commits into from
Dec 5, 2023

Conversation

bhcleek
Copy link
Collaborator

@bhcleek bhcleek commented Dec 5, 2023

Fix same id highlighting of identifiers that are at the very end of a line.

Fixes #3605

Fix same id highlighting of identifiers that are at the very end of a
line.

Fixes fatih#3605
Fix jumping to a definition so that it uses the actual definition line
to calculate the position of the definition when the definition is not
in the current buffer.
use getbufoneline when it's available to get a line instead of getting
all the lines of a buffer and selecting only the line of interest.
@bhcleek bhcleek marked this pull request as ready for review December 5, 2023 23:38
@bhcleek bhcleek merged commit bbdfb6b into fatih:master Dec 5, 2023
8 checks passed
bhcleek added a commit that referenced this pull request Dec 5, 2023
@bhcleek bhcleek added this to the vim-go v1.29 milestone Dec 6, 2023
@bhcleek bhcleek deleted the sameids/off-by-one branch December 6, 2023 17:21
@dunric
Copy link

dunric commented Dec 6, 2023

Good job, yet again…

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.

GoSameIds end position miscalculated for identifiers at the end of line
2 participants