navi
navi copied to clipboard
handle Chinese characters
if the comment row has Chinese characters, the third row does not align correctly.
Thanks for opening your first issue here! In case you're facing a bug, please update navi to the latest version first. Maybe the bug is already solved! :)
I bet the problem is in this line and is related to the fact that chinese characters need more than 1 byte to be represented.
This will also happen if you try using emojis too, I presume.
I need to investigate it
I bet the problem is in this line and is related to the fact that chinese characters need more than 1 byte to be represented.
This will also happen if you try using emojis too, I presume.
I need to investigate it
Many thanks
I ran into this issue as well. Looks like format!()
is padding it to the correct number of characters, but the problem is that those Chinese characters are simply rendered twice as wide by the terminal. The unicode-width crate can probably help.
Duplicate of #820