diff --git a/src/vs/workbench/contrib/terminalContrib/links/browser/terminalLinkDetectorAdapter.ts b/src/vs/workbench/contrib/terminalContrib/links/browser/terminalLinkDetectorAdapter.ts index d8929adcd12..8226841a9a0 100644 --- a/src/vs/workbench/contrib/terminalContrib/links/browser/terminalLinkDetectorAdapter.ts +++ b/src/vs/workbench/contrib/terminalContrib/links/browser/terminalLinkDetectorAdapter.ts @@ -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);