1347
1348
if (this.offsetInBuffer(piece.bufferIndex, piece.end) - this.offsetInBuffer(piece.bufferIndex, piece.start) === accumulatedValue) {
1349
>
// we are checking the end of this node, so a CRLF check is necessary.
pieceTreeBase.ts
1350
>
const realLineCnt = this.getLineFeedCnt(node.piece.bufferIndex, piece.start, pos);
1351
>
if (realLineCnt !== lineCnt) {
1352
// aha yes, CRLF
1353
return { index: realLineCnt, remainder: 0 };
1354
}
1356
1357
return { index: lineCnt, remainder: pos.column };