-
-
Notifications
You must be signed in to change notification settings - Fork 354
Open
Labels
bugUnexpected problem or unintended behaviorUnexpected problem or unintended behavior
Description
Bug summary
Unicode chars with zero-width joiner (U+200D) are displayed with wrong column count in chat area.
This is one remaining bug of issue #1857, which has been closed because it was a ncurses bug.
Steps to reproduce
- Compile WeeChat compiled against ncurses ≥ 6.3_p20220612
- Run WeeChat in a terminal able to display such Unicode char, like WezTerm or kitty (not to be confused with KiTTY which is a fork of PuTTY).
- Execute this command:
/eval /print [${\U1F62E\u200D\U1F4A8}]
Current behavior
Output is:
Note the two spaces before the closing bracket: they should not be displayed.
Expected behavior
No spaces before the closing bracket, ie WeeChat knows that the char is displayed on 2 columns and not 4.
Suggested solutions
Count chars together to have a displayed size of 2 instead of 4.
Additional information
Be sure you're using ncurses ≥ 6.3_p20220612 because older versions have a broken display (see #1857).
- WeeChat version: 3.7.1
- OS, distribution and version: Alpine Linux 3.17
- Terminal: kitty
- Terminal multiplexer (screen/tmux/…/none): none
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugUnexpected problem or unintended behaviorUnexpected problem or unintended behavior
