diff --git a/src/system/string.ts b/src/system/string.ts index c8b5d11..d7d584f 100644 --- a/src/system/string.ts +++ b/src/system/string.ts @@ -115,7 +115,7 @@ export namespace Strings { count += getWidth(s[chars++]); } - if (count > truncateTo) { + if (count >= truncateTo) { chars--; }