From 2a126cf1dc38712a0967415818d1d4287d862c3e Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Wed, 4 Oct 2017 11:45:13 -0700 Subject: [PATCH] Fix links sometimes not getting applied There was an incorrect comparison which occasionally caused links to not be picked up. Fixes #1025 --- src/Linkifier.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Linkifier.ts b/src/Linkifier.ts index 42d20f9c..e6a63b5c 100644 --- a/src/Linkifier.ts +++ b/src/Linkifier.ts @@ -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