~rjarry/aerc#22: 
Incorrect CJK width in index format

Full-width east asian characters take two columns and index format does not take this into account. For example, by default the subject is pushed to the right if the author name contains such charactor.

golang.org/x/text/width can be useful to determine the actual display width of characters.

Status
REPORTED
Submitter
~cnx
Assigned to
No-one
Submitted
3 months ago
Updated
2 months ago
Labels
bug ui

~jgresty 2 months ago

This also happens with multi-character emoji such as 🏳️‍🌈 when the font doesn't support that glyph. (alacritty 0.10.0, HackGen35Nerd Console 2.5.2)

example

~rjarry 2 months ago

I have no idea how to fix this. fmt.Sprintf does not seem to take wide characters into account.

Register here or Log in to comment, or comment via email.