329
330
if (headIsInfinite) {
331
>
let distLine: number, distCol: number;
textEdit.ts
332
>
if (currentPosInS1Line === r2Start.lineNumber) {
333
distLine = 0;
334
distCol = r2Start.column - currentPosInS1Col;
336
distLine = r2Start.lineNumber - currentPosInS1Line;
337
distCol = r2Start.column - 1;
338
}
340
>
currentPosInS1Line = r2Start.lineNumber;
341
>
currentPosInS1Col = r2Start.column;
342
>
343
>
if (distLine === 0) {
344
headSrcRangeStartCol += distCol;
346
headSrcRangeStartLine += distLine;
347
headSrcRangeStartCol = distCol + 1;
348
}
350
>
}
351
352
let headEndInS1Line: number, headEndInS1Col: number;