Merge pull request #3718 from LuckyGeck/fixweblink

Fix WebLinkProvider to handle wrapped lines properly.
This commit is contained in:
Daniel Imms
2022-03-31 09:23:06 -07:00
committed by GitHub
@@ -79,10 +79,17 @@ export class LinkComputer {
endY++;
}
let startX = stringIndex + 1;
let startY = startLineIndex + 1;
while (startX > terminal.cols) {
startX -= terminal.cols;
startY++;
}
const range = {
start: {
x: stringIndex + 1,
y: startLineIndex + 1
x: startX,
y: startY
},
end: {
x: endX,