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