Closes #146 - Attempts to deal with emoji in gutter

Adds ability to automagically set the width of the gutter annotations
This commit is contained in:
Eric Amodio
2017-09-19 01:57:11 -04:00
parent a10376385a
commit 70071448d6
7 changed files with 137 additions and 51 deletions

View File

@@ -51,7 +51,7 @@ export abstract class Formatter<TItem = any, TOptions extends IFormatOptions = I
let max = options.truncateTo;
const width = Strings.getWidth(s);
const width = Strings.width(s);
if (max === undefined) {
if (this.collapsableWhitespace === 0) return s;