🎨 Improve ref count floating window render heading

This commit is contained in:
Liang Ding 2023-05-06 09:33:20 +08:00
parent b10edbbcb9
commit 6d00914018
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -502,10 +502,6 @@ func GetDoc(startID, endID, id string, index int, keyword string, mode int, size
if ast.NodeParagraph == node.Type {
if nil != node.Parent && ast.NodeListItem == node.Parent.Type {
node = node.Parent
} else {
if parent := treenode.HeadingParent(node); nil != parent && ast.NodeDocument != parent.Type {
node = parent
}
}
}
}