Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2025-10-10 11:20:22 +08:00
parent 9372119bc3
commit 6acd0d3f27
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -912,8 +912,12 @@ func (tx *Transaction) doDelete(operation *Operation) (ret *TxErr) {
node.Next.Unlink()
}
next := node.Next
node.Unlink()
parentFoldedHeading := treenode.GetParentFoldedHeading(next)
unfoldHeading(parentFoldedHeading)
if nil != parent && ast.NodeListItem == parent.Type && nil == parent.FirstChild {
needAppendEmptyListItem := true
for _, op := range tx.DoOperations {