🎨 块引用与所引用的内容块进行交换 https://github.com/siyuan-note/siyuan/issues/4981

This commit is contained in:
Liang Ding 2022-10-02 22:50:09 +08:00
parent b774f98044
commit 5bd06ea506
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -158,7 +158,7 @@ func SwapBlockRef(refID, defID string, includeChildren bool) (err error) {
defNode.InsertAfter(refNode)
refPivot.InsertAfter(defNode)
for i := len(defNodeChildren) - 1; -1 < i; i-- {
refPivot.InsertAfter(defNodeChildren[i])
defNode.InsertAfter(defNodeChildren[i])
}
}
}