Skip to content

Commit

Permalink
🐛 Focused heading block export does not contain its following blocks Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Apr 4, 2023
1 parent ba87237 commit aa3dcba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/treenode/blocktree.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ func IndexBlockTree(tree *parse.Tree) {
slice.m.Unlock()

if nil != bt {
if bt.Updated != n.IALAttr("updated") || bt.Path != tree.Path || bt.BoxID != tree.Box || bt.HPath != tree.HPath {
if bt.Updated != n.IALAttr("updated") || bt.Type != TypeAbbr(n.Type.String()) || bt.Path != tree.Path || bt.BoxID != tree.Box || bt.HPath != tree.HPath {
children := ChildBlockNodes(n) // 需要考虑子块,因为一些操作(比如移动块)后需要同时更新子块
changedNodes = append(changedNodes, children...)
}
Expand Down

0 comments on commit aa3dcba

Please sign in to comment.