From 8b3f5594044d245d8a17c966926278657e2e89cb Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Tue, 7 Jun 2022 19:41:25 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E5=A4=9A=E7=BA=A7=E6=A0=87=E9=A2=98?= =?UTF-8?q?=E6=8A=98=E5=8F=A0=E5=90=8E=E4=B8=8A=E7=BA=A7=E5=9D=97=E5=BC=95?= =?UTF-8?q?=E6=B5=AE=E7=AA=97=E4=B8=AD=E6=9C=AA=E6=8A=98=E5=8F=A0=20Fix=20?= =?UTF-8?q?https://github.com/siyuan-note/siyuan/issues/4997?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/file.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kernel/model/file.go b/kernel/model/file.go index b49465ea8..f191158c0 100644 --- a/kernel/model/file.go +++ b/kernel/model/file.go @@ -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 {