From a3444452aa8f28f7a5183340a9446ff3894ab0f4 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Mon, 6 Feb 2023 08:54:08 +0800 Subject: [PATCH] =?UTF-8?q?:zap:=20=E6=94=B9=E8=BF=9B=E5=9D=97=E5=BC=95?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E6=80=A7=E8=83=BD=20https://github.com/siyua?= =?UTF-8?q?n-note/siyuan/issues/7262?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/search.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/model/search.go b/kernel/model/search.go index 3996ff09a..f7e00c5db 100644 --- a/kernel/model/search.go +++ b/kernel/model/search.go @@ -124,9 +124,9 @@ func SearchRefBlock(id, rootID, keyword string, beforeLen int) (ret []*Block, ne // 查询为空时默认的块引排序规则按最近使用优先 https://github.com/siyuan-note/siyuan/issues/3218 refs := sql.QueryRefsRecent() for _, ref := range refs { - tree := cachedTrees[ref.RootID] + tree := cachedTrees[ref.DefBlockRootID] if nil == tree { - tree, _ = loadTreeByBlockID(ref.RootID) + tree, _ = loadTreeByBlockID(ref.DefBlockRootID) } if nil == tree { continue