mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 21:55:38 +00:00
Merge pull request #146203 from microsoft/tyriar/145508
Don't check lines too short for shell integration link
This commit is contained in:
commit
1cb0dea143
|
@ -51,6 +51,9 @@ export class TerminalShellIntegrationLinkDetector implements ITerminalLinkDetect
|
|||
}
|
||||
|
||||
private _matches(lines: IBufferLine[]): boolean {
|
||||
if (lines.length < linkCodes.length) {
|
||||
return false;
|
||||
}
|
||||
let cell: IBufferCell | undefined;
|
||||
for (let i = 0; i < linkCodes.length; i++) {
|
||||
cell = lines[Math.floor(i / this.xterm.cols)].getCell(i % this.xterm.cols, cell);
|
||||
|
|
Loading…
Reference in a new issue