fix(terminal): calculate length correctly

This commit is contained in:
L. Yeung 2024-07-17 16:39:10 +08:00 committed by Jan De Dobbeleer
parent 57f0eecf39
commit 4b5bac3b4b

View file

@ -344,7 +344,6 @@ func Write(background, foreground color.Ansi, text string) {
continue
}
length += runewidth.RuneWidth(s)
write(s)
}