From 9bc1711af842ef7ab11b46f302170e6dbbc26270 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Mon, 27 Jun 2022 16:16:47 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BD=BF=E7=94=A8=E5=9D=97=E6=BB=9A?= =?UTF-8?q?=E5=8A=A8=E6=9D=A1=E8=B7=B3=E8=BD=AC=E5=88=B0=E6=9C=80=E5=90=8E?= =?UTF-8?q?=E4=B8=80=E4=B8=AA=E5=9D=97=E6=97=B6=E6=97=A0=E6=B3=95=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=E4=B8=8A=E9=9D=A2=E7=9A=84=E5=9D=97=20https://github.?= =?UTF-8?q?com/siyuan-note/siyuan/issues/5291?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/model/file.go b/kernel/model/file.go index 3c8432457..b21f88dfe 100644 --- a/kernel/model/file.go +++ b/kernel/model/file.go @@ -679,7 +679,7 @@ func GetDoc(id string, index int, keyword string, mode int, size int) (blockCoun } func loadNodesByMode(node *ast.Node, inputIndex, mode, size int, isDoc, isHeading bool) (nodes []*ast.Node, eof bool) { - if 0 == mode /* 仅当前 */ || 2 == mode /* 向下 */ { + if 2 == mode /* 向下 */ { next := node.Next if ast.NodeHeading == node.Type && "1" == node.IALAttr("fold") { // 标题展开时进行动态加载导致重复内容 https://github.com/siyuan-note/siyuan/issues/4671