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