mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 16:40:13 +01:00
🎨 块引用与所引用的内容块进行交换 https://github.com/siyuan-note/siyuan/issues/4981
This commit is contained in:
parent
b774f98044
commit
5bd06ea506
1 changed files with 1 additions and 1 deletions
|
|
@ -158,7 +158,7 @@ func SwapBlockRef(refID, defID string, includeChildren bool) (err error) {
|
||||||
defNode.InsertAfter(refNode)
|
defNode.InsertAfter(refNode)
|
||||||
refPivot.InsertAfter(defNode)
|
refPivot.InsertAfter(defNode)
|
||||||
for i := len(defNodeChildren) - 1; -1 < i; i-- {
|
for i := len(defNodeChildren) - 1; -1 < i; i-- {
|
||||||
refPivot.InsertAfter(defNodeChildren[i])
|
defNode.InsertAfter(defNodeChildren[i])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue