Skip to content

Conversation

@ConnorBerghoffer
Copy link

Emojis take up 2 visual columns but were counted as 1 character, causing the box right edge to misalign. Now using stringWidth instead of .length which properly calculates visual width for emojis and other wide characters.

Fixes #402

Emojis take up 2 visual columns but were counted as 1 character, causing the box right edge to misalign. Now using stringWidth instead of .length which properly calculates visual width for emojis and other wide characters.

Fixes unjs#402
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.

Using emoji breaks consola.box

1 participant