Skip to content

Commit

Permalink
Fixes #135 - Full-width chars break gutter annotations (really)
Browse files Browse the repository at this point in the history
  • Loading branch information
eamodio committed Aug 30, 2017
1 parent 4c4926c commit c258d04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/system/string.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export namespace Strings {
count += getWidth(s[chars++]);
}

if (count > truncateTo) {
if (count >= truncateTo) {
chars--;
}

Expand Down

0 comments on commit c258d04

Please sign in to comment.