From 268f83cf9ed9e56827c648cd20c7305ab0f315d8 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Thu, 29 Sep 2022 22:36:24 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E7=94=9F=E6=88=90=E9=87=8D=E5=A4=8D/?= =?UTF-8?q?=E5=86=B2=E7=AA=81=E6=96=87=E6=A1=A3=E6=97=B6=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=20`scroll`=20=E6=B5=8F=E8=A7=88=E4=BD=8D=E7=BD=AE=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=20Fix=20https://github.com/siyuan-note/siyuan/issues/?= =?UTF-8?q?6016?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/tree.go | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/model/tree.go b/kernel/model/tree.go index 6e8f319b4..16f2708b6 100644 --- a/kernel/model/tree.go +++ b/kernel/model/tree.go @@ -45,6 +45,7 @@ func resetTree(tree *parse.Tree, titleSuffix string) { titleSuffix = "(" + titleSuffix + ")" tree.Root.SetIALAttr("id", tree.ID) tree.Root.SetIALAttr("title", tree.Root.IALAttr("title")+" "+titleSuffix) + tree.Root.RemoveIALAttr("scroll") p := path.Join(path.Dir(tree.Path), tree.ID) + ".sy" tree.Path = p tree.HPath = tree.HPath + " " + titleSuffix