1022
const nodesToDel: TreeNode[] = [];
1023
if (this.shouldCheckCRLF() && this.endWithCR(value) && this.startWithLF(node)) {
1025
>
1026
>
const piece = node.piece;
1027
>
const newStart: BufferCursor = { line: piece.start.line + 1, column: 0 };
1028
>
const nPiece = new Piece(
1029
>
piece.bufferIndex,
1030
>
newStart,
1031
>
piece.end,
1032
>
this.getLineFeedCnt(piece.bufferIndex, newStart, piece.end),
1033
>
piece.length - 1
1034
>
);
1035
>
1036
>
node.piece = nPiece;
1037
>
1038
>
value += '\n';
1039
>
updateTreeMetadata(this, node, -1, -1);
1040
>
1041
>
if (node.piece.length === 0) {
1042
nodesToDel.push(node);
1043
}
1045
1046
const newPieces = this.createNewPieces(value);