From c258d04381af01017af40163e1eb8ba58c577048 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Wed, 30 Aug 2017 11:46:41 -0400 Subject: [PATCH] Fixes #135 - Full-width chars break gutter annotations (really) --- src/system/string.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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--; }