Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix cursor-at for close tokens #445

Merged
merged 5 commits into from
Feb 11, 2025
Merged

Fix cursor-at for close tokens #445

merged 5 commits into from
Feb 11, 2025

Conversation

doriable
Copy link
Member

Since open/close tokens are fused, when we set the idx for
NewCursorAt for close tokens, we need to use the offset to
set it to the open token.

@doriable doriable requested review from mcy and emcfarlane February 11, 2025 21:35
@mcy mcy merged commit 8408f3f into main Feb 11, 2025
8 checks passed
@mcy mcy deleted the fix-newcursorat branch February 11, 2025 23:10
mcy pushed a commit that referenced this pull request Feb 12, 2025
Since open/close tokens are fused, when we set the `idx` for
`NewCursorAt` for close tokens, we need to use the offset to
set it to the open token.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants