Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[color] Use graphemes to measure strings.
The number of Unicode code points in a string is not the same as the number of user-visible characters (graphemes). When measuring colorized strings, we want the latter rather than the former. Notably, these changes fix some issues where the interactive display cut off before the right edge of the terminal.
- Loading branch information
Showing
15 changed files
with
4,560 additions
and
4,520 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.