Fix maxLineContext expression

Looks like an accidental / instead of ,
This commit is contained in:
Daniel Imms
2024-01-31 08:21:34 -08:00
parent 4dc4b87665
commit 4addb2442e
@@ -76,7 +76,7 @@ export class TerminalLinkDetectorAdapter extends Disposable implements ILinkProv
// Cap the maximum context on either side of the line being provided, by taking the context
// around the line being provided for this ensures the line the pointer is on will have
// links provided.
const maxLineContext = Math.max(this._detector.maxLinkLength / this._detector.xterm.cols);
const maxLineContext = Math.max(this._detector.maxLinkLength, this._detector.xterm.cols);
const minStartLine = Math.max(startLine - maxLineContext, 0);
const maxEndLine = Math.min(endLine + maxLineContext, this._detector.xterm.buffer.active.length);