485
486
if (r2EndIsBeforeHeadEnd) {
487
>
let splitLenLine: number, splitLenCol: number;
textEdit.ts
488
>
if (currentPosInS1Line === r2End.lineNumber) {
489
splitLenLine = 0;
490
splitLenCol = r2End.column - currentPosInS1Col;
492
splitLenLine = r2End.lineNumber - currentPosInS1Line;
493
splitLenCol = r2End.column - 1;
494
}
496
>
let remainingLenLine: number, remainingLenCol: number;
497
>
if (splitLenLine === headLengthLine) {
498
remainingLenLine = 0;
499
remainingLenCol = headLengthCol - splitLenCol;
501
remainingLenLine = headLengthLine - splitLenLine;
502
remainingLenCol = headLengthCol;
503
}
505
>
if (headText !== null) {
506
if (consumedStartS0Line === null) {
507
consumedStartS0Line = headSrcRangeStartLine;