Skip to content

fix: infinite loop when whitespaceChars width is 0 #150

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

Closed
wants to merge 2 commits into from
Closed

fix: infinite loop when whitespaceChars width is 0 #150

wants to merge 2 commits into from

Conversation

griimick
Copy link

Fixes #108

This fixes the infinite loop mentioned in issue.

@griimick
Copy link
Author

griimick commented Oct 19, 2022

Unrelated but there are more corner cases to withWhitespaceChars like,

  • ".\n"
  • ".\t"

Should we ignore runes with 0 PrintableRuneWidth (\n, \t) when used as whitespaceChars when rendering them?

@griimick griimick closed this by deleting the head repository Dec 24, 2022
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.

Infinite loop when using tab as whitespace
1 participant