fix: dirty fix for char width

This commit is contained in:
Shibo Lyu 2025-01-28 17:21:59 +08:00
parent 4dd8121ebb
commit 7923680e80
3 changed files with 9 additions and 2 deletions

View file

@ -10,5 +10,6 @@ export function getCharacterWidth(ch: string): number {
);
}
return unicodeWidth(ch);
// TODO: Properly fix this.
return Math.min(unicodeWidth(ch), 2);
}