Fix WebLinkProvider to handle wrapped lines properly.

This commit is contained in:
Pavel Sychev
2022-03-30 14:27:02 +02:00
committed by Pavel Sychev
parent 89af5b1098
commit 32ae29be37
@@ -78,10 +78,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,