Skip to content

Commit 94dbdc1

Browse files
committed
progress: fix typo in comment
Signed-off-by: Zhaoxuan Zhai <[email protected]>
1 parent 3cf83bd commit 94dbdc1

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

progress/ansimeter.go

+5-6
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,11 @@ func init() {
7575
// With EastAsianWidth = true (the default value if LC_ALL is set to one of CJK locales), runewidth assumes
7676
// the width of the character '…' is 2. But we expected it to be 1.
7777
//
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.
8483
//
8584
// See "Ambiguous Characters" in http://www.unicode.org/reports/tr11/
8685
runewidth.DefaultCondition.EastAsianWidth = false

0 commit comments

Comments
 (0)