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

Cleaning & fixing the caret's line-to-Y logic #499

Merged
merged 2 commits into from
Feb 25, 2023

Conversation

DrDaleks
Copy link
Contributor

Using existing code to compute line-to-Y position rather than manually. Simpler code that also properly aligns caret and marker painting for a same location.

Using existing code to compute line-to-Y position rather than manually. Simpler code that also properly aligns caret and marker painting for a same location.
Ensures the caret marker never leaves the error strip bounds (notably on first and last lines)
@bobbylight
Copy link
Owner

This actually requires ErrorStrip.Marker.updateLocation() to call lineToY(line - 1) since Markers' lines are 1-based and the caret is 0-based.

@bobbylight bobbylight added this to the 3.3.3 milestone Feb 25, 2023
@bobbylight bobbylight merged commit 8ca443d into bobbylight:master Feb 25, 2023
@bobbylight
Copy link
Owner

Thanks for this! I'll make the tweak I mentioned above

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