Commit a4f3786
committed
python: consider emojis with expandable width
Problem: The expandable width prefix ("+:") assumes all output
characters are 1 character width in size. This may not always be
the case, such as with several of the emoji output options.
Use wcswidth() instead of len() for calculating output width.1 parent 31459ee commit a4f3786
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
1027 | 1028 | | |
1028 | 1029 | | |
1029 | 1030 | | |
1030 | | - | |
| 1031 | + | |
1031 | 1032 | | |
1032 | 1033 | | |
1033 | 1034 | | |
| |||
0 commit comments