File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -75,12 +75,11 @@ func init() {
75
75
// With EastAsianWidth = true (the default value if LC_ALL is set to one of CJK locales), runewidth assumes
76
76
// the width of the character '…' is 2. But we expected it to be 1.
77
77
//
78
- // But in the real world, most of terminal applications render it as 1 column. Even if the UI language of
79
- // the console application is CJK.
80
- // I have tested on GNOME Shell, Konsole, Tilda and Linux Console with default monospace font on Ubuntu Noble.
81
- // All of them rendered it as 1 column.
82
- // To get closer to the real world, we disable EastAsianWidth here. And we will show correct progress bar in most
83
- // of terminal applications.
78
+ // But in the real world, most of terminal applications render it as 1 column, even if the UI language of
79
+ // the console application is CJK. This appears to be true for GNOME Terminal, Konsole, Tilda and
80
+ // Linux Console with default monospace font on Ubuntu Noble, all of them rendered it as 1 column.
81
+ // To get closer to the real world, we disable EastAsianWidth here. And we will show correct progress
82
+ // bar in most of terminal applications.
84
83
//
85
84
// See "Ambiguous Characters" in http://www.unicode.org/reports/tr11/
86
85
runewidth .DefaultCondition .EastAsianWidth = false
You can’t perform that action at this time.
0 commit comments