Skip to content
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

Width of wide characters are not calculated correctly? #76

Open
m5d215 opened this issue Feb 15, 2021 · 1 comment
Open

Width of wide characters are not calculated correctly? #76

m5d215 opened this issue Feb 15, 2021 · 1 comment
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@m5d215
Copy link

m5d215 commented Feb 15, 2021

It seems that the character widths of some of the wide characters are not calculated correctly, causing the hints to be misplaced.

echo '├ 192.168.1.1'

prefix+I ⬇️


I expect this is a problem with the unicode-width package, but is it possible to fix it?

@fcsonline
Copy link
Owner

It is a really long story. I'm also facing this from time to time. It looks like there is a subset of characters that are difficult to know their width. Or on the other hand, unicode-width follows the specification but then the UI representation is a little different.

More information:
http://www.unicode.org/reports/tr11/

If we are able to solve this, it will be awesome. I use to play with those two files to get those errors:

https://github.com/fcsonline/tmux-thumbs/blob/master/samples/test4
https://github.com/fcsonline/tmux-thumbs/blob/master/samples/test1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants