From 2bbd1a89d0e397bbc66aa4274152957e35224a34 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sun, 7 Apr 2024 09:43:29 +0800 Subject: [PATCH] :art: Support adding the current document in the database https://github.com/siyuan-note/siyuan/issues/10912 --- kernel/model/search.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/model/search.go b/kernel/model/search.go index d36a500a9..d3e7d5378 100644 --- a/kernel/model/search.go +++ b/kernel/model/search.go @@ -369,7 +369,7 @@ func SearchRefBlock(id, rootID, keyword string, beforeLen int, isSquareBrackets b.RefText = getBlockRefText(b.ID, tree) hitFirstChildID := false - if b.IsContainerBlock() { + if b.IsContainerBlock() && "NodeDocument" != b.Type { // `((` 引用候选中排除当前块的父块 https://github.com/siyuan-note/siyuan/issues/4538 tree := cachedTrees[b.RootID] if nil == tree {