mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-02 19:59:08 +08:00
🎨 Improve tree block stat https://github.com/siyuan-note/siyuan/issues/13811
This commit is contained in:
parent
4325228196
commit
632dcd08f3
@ -93,7 +93,7 @@ func statTree(tree *parse.Tree) (ret *util.BlockStatResult) {
|
|||||||
blockCount := 0
|
blockCount := 0
|
||||||
var databaseBlockNodes []*ast.Node
|
var databaseBlockNodes []*ast.Node
|
||||||
ast.Walk(tree.Root, func(n *ast.Node, entering bool) ast.WalkStatus {
|
ast.Walk(tree.Root, func(n *ast.Node, entering bool) ast.WalkStatus {
|
||||||
if !entering {
|
if !entering || tree.Root == n {
|
||||||
return ast.WalkContinue
|
return ast.WalkContinue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user