Skip to content

Fix linebreak for unicode symbols#47

Open
btrkeks wants to merge 1 commit intodudik:masterfrom
btrkeks:master
Open

Fix linebreak for unicode symbols#47
btrkeks wants to merge 1 commit intodudik:masterfrom
btrkeks:master

Conversation

@btrkeks
Copy link
Copy Markdown

@btrkeks btrkeks commented May 10, 2023

When using unicode symbols that consist of more than one byte (non-ascii), the line break will most of the time happen within a byte sequence and break the rest of the line. This checks if the byte is a "tail byte" (starting with 10) and decrements in this case, because the line break should happen before a starting byte.

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.

1 participant