🐛 Enter after the folded heading in the list will cause the blocks to be reversed below the heading Fix https://github.com/siyuan-note/siyuan/issues/7984

This commit is contained in:
Liang Ding 2023-04-13 19:22:15 +08:00
parent 66bd5e91a5
commit 1315b0e8c6
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -50,8 +50,8 @@ func MoveFoldHeading(updateNode, oldNode *ast.Node) {
})
for _, h := range updateFoldHeadings {
children := foldHeadings[h.ID]
for _, c := range children {
h.Next.InsertAfter(c) // Next 是 Block IAL
for i := len(children) - 1; 0 <= i; i-- {
h.Next.InsertAfter(children[i]) // Next 是 Block IAL
}
}
return