Fix links sometimes not getting applied

There was an incorrect comparison which occasionally caused links to
not be picked up.

Fixes #1025
This commit is contained in:
Daniel Imms
2017-10-04 11:45:13 -07:00
parent e3d69d78a0
commit 2a126cf1dc
+1 -1
View File
@@ -87,7 +87,7 @@ export class Linkifier extends EventEmitter implements ILinkifier {
this._rowsToLinkify.end = end;
} else {
this._rowsToLinkify.start = this._rowsToLinkify.start < start ? this._rowsToLinkify.start : start;
this._rowsToLinkify.end = this._rowsToLinkify.end < end ? this._rowsToLinkify.end : end;
this._rowsToLinkify.end = this._rowsToLinkify.end > end ? this._rowsToLinkify.end : end;
}
// Clear out any existing links on this row range