Browse Source

Fixes #135 - Full-width chars break gutter annotations (really)

main
Eric Amodio 7 years ago
parent
commit
c258d04381
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/system/string.ts

+ 1
- 1
src/system/string.ts View File

@ -115,7 +115,7 @@ export namespace Strings {
count += getWidth(s[chars++]); count += getWidth(s[chars++]);
} }
if (count > truncateTo) {
if (count >= truncateTo) {
chars--; chars--;
} }

Loading…
Cancel
Save