From 4addb2442eef2e856e42ce6092bd2bcd61e3e1f4 Mon Sep 17 00:00:00 2001 From: Daniel Imms <2193314+Tyriar@users.noreply.github.com> Date: Wed, 31 Jan 2024 08:21:34 -0800 Subject: [PATCH] Fix maxLineContext expression Looks like an accidental / instead of , --- .../links/browser/terminalLinkDetectorAdapter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);