-
Notifications
You must be signed in to change notification settings - Fork 23
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
Was there a change introduced in 0.2.12
?
#65
Comments
This is intentional to bring it more in line with the specification, in this case it has to do with emoji rendering. Please continue to expect such changes as we tweak the algorithm. This is a best-effort character width algorithm and should not be relied on for some precise result: there is no way to get One True Answer for terminal width of a string without knowing the fonts and rendering stack used. All we can do is estimate. cc @Jules-Bertholet on the str vs char difference |
A one-character string always has the same width as that single character, there is a unit test that verifies this. The |
Got you Thanks once again. |
Hi there,
Thanks for such a valuable crate.
I just noticed recently this change, and wonder whether it's all right.
Sorry in case I have not got to read some docs which would explain it.
But could you help me a bit?
So there's a simple test which works differently on
0.2.11
and0.2.12|0.2.13
.As you might already guessed the different is in
♀
character width.But what's interesting if we treat it as a
char
it will be identical across versions.Take care.
Have a great weekend .
The text was updated successfully, but these errors were encountered: