mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-21 11:30:42 +08:00
🎨 块引用与所引用的内容块进行交换 https://github.com/siyuan-note/siyuan/issues/4981
This commit is contained in:
parent
b774f98044
commit
5bd06ea506
@ -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])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user