-
Notifications
You must be signed in to change notification settings - Fork 25
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
Unexpected trailing newline behavior with Cursor
and Selection
#132
Comments
Cursor
and Selection
Cursor
and Selection
This is a bug that originates in swash. Essentially, the Unicode line breaking algorithm generates mandatory breaks after the newline sequence so we don’t capture the final empty line at all because we don’t have a cluster where we can attach the state. I have a “fix” for this in the upcoming code that just uses the cluster’s whitespace property to detect newlines and ignores the results of the LBA entirely for these. This actually simplifies the code a bit and removes the nasty “skip mandatory break” logic. |
No description provided.
The text was updated successfully, but these errors were encountered: