Fix WebLinkProvider to handle wrapped lines properly.
This commit is contained in:
committed by
Pavel Sychev
parent
89af5b1098
commit
32ae29be37
@@ -78,10 +78,17 @@ export class LinkComputer {
|
|||||||
endY++;
|
endY++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let startX = stringIndex + 1;
|
||||||
|
let startY = startLineIndex + 1;
|
||||||
|
while (startX > terminal.cols) {
|
||||||
|
startX -= terminal.cols;
|
||||||
|
startY++;
|
||||||
|
}
|
||||||
|
|
||||||
const range = {
|
const range = {
|
||||||
start: {
|
start: {
|
||||||
x: stringIndex + 1,
|
x: startX,
|
||||||
y: startLineIndex + 1
|
y: startY
|
||||||
},
|
},
|
||||||
end: {
|
end: {
|
||||||
x: endX,
|
x: endX,
|
||||||
|
|||||||
Reference in New Issue
Block a user