1746
rbDelete(this, nextNode);
1747
} else {
1749
>
const piece = nextNode.piece;
1750
>
const newStart: BufferCursor = { line: piece.start.line + 1, column: 0 };
1751
>
const newLength = piece.length - 1;
1752
>
const newLineFeedCnt = this.getLineFeedCnt(piece.bufferIndex, newStart, piece.end);
1753
>
nextNode.piece = new Piece(
1754
>
piece.bufferIndex,
1755
>
newStart,
1756
>
piece.end,
1757
>
newLineFeedCnt,
1758
>
newLength
1759
>
);
1760
>
1761
>
updateTreeMetadata(this, nextNode, -1, -1);
1762
>
}
1763
return true;
1764
}