Skip to content

Commit

Permalink
🎨 Support Jump to the next block in the parent level on focus status
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Oct 28, 2023
1 parent b582f76 commit c47de3e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion kernel/model/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,10 @@ func GetParentNextChildID(id string) string {

for p := node.Parent; nil != p; p = p.Parent {
if ast.NodeDocument == p.Type {
return node.Next.ID
if nil != node.Next {
return node.Next.ID
}
return ""
}

for f := p.Next; nil != f; f = f.Next {
Expand Down

0 comments on commit c47de3e

Please sign in to comment.