mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-22 06:54:08 +01:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
1715faad31
2 changed files with 5 additions and 0 deletions
|
|
@ -179,6 +179,9 @@ func SwapBlockRef(refID, defID string, includeChildren bool) (err error) {
|
|||
li.SetIALAttr("id", newID)
|
||||
li.SetIALAttr("updated", newID[:14])
|
||||
li.AppendChild(defNode)
|
||||
for i := len(defNodeChildren) - 1; -1 < i; i-- {
|
||||
defNode.InsertAfter(defNodeChildren[i])
|
||||
}
|
||||
refPivot.InsertAfter(li)
|
||||
} else {
|
||||
defNode.InsertAfter(refNode)
|
||||
|
|
|
|||
|
|
@ -431,6 +431,8 @@ func BlocksWordCount(ids []string) (ret *util.BlockStatResult) {
|
|||
}
|
||||
|
||||
func StatTree(id string) (ret *util.BlockStatResult) {
|
||||
WaitForWritingFiles()
|
||||
|
||||
tree, _ := loadTreeByBlockID(id)
|
||||
if nil == tree {
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue