wcwidth
wcwidth copied to clipboard
Variation selectors are not correctly handled
Variation selectors (U+FE0E, U+FE0F) can change column widths of some preceding characters. For example, U+270F (✏) is a single-column glyph by itself, but with a succeeding U+FE0F it occupies 2 columns as shown in the snapshot below.

Sorry I just went through the README. Is such kind of cases not supposed to be handled by this package?
This is a new one to me, yes, if iTerm and libvte-based terminals support it, then so should wcwidth! Thank you
@jquast Then I'm afraid this is not the only case... There are also for example, Emoji Modifier Sequences, Zero-Width Joiner (and etc?).
Unicode is crazy lol...

Multi codepoint emoji's covered in #39, zero-width joiners are sort of in 2 different issues.. Yes, Unicode 6.0 was so much easier when this project started :)
I have verified that this example in particular is fixed by #91 in today's release, thank you