🐛 多级标题折叠后上级块引浮窗中未折叠 Fix https://github.com/siyuan-note/siyuan/issues/4997

This commit is contained in:
Liang Ding 2022-06-07 19:41:25 +08:00
parent b08910aacc
commit 8b3f559404
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -694,8 +694,9 @@ func loadNodesByMode(node *ast.Node, inputIndex, mode, size int, isDoc, isHeadin
} else if isHeading {
level := node.HeadingLevel
for n := node.Next; nil != n; n = n.Next {
if "1" == n.IALAttr("heading-fold") && ("1" == node.IALAttr("fold") && 0 == mode) {
// 从大纲跳转折叠标题的下方标题时需要判断跳转的标题是否是折叠 https://github.com/siyuan-note/siyuan/issues/4920
if "1" == n.IALAttr("heading-fold") {
// 大纲点击折叠标题跳转聚焦 https://github.com/siyuan-note/siyuan/issues/4920
// 多级标题折叠后上级块引浮窗中未折叠 https://github.com/siyuan-note/siyuan/issues/4997
continue
}
if ast.NodeHeading == n.Type {