From 5f8b71f566ac0d8289f3096b9cac049f5705a94f Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sat, 3 Jun 2023 22:54:31 +0800 Subject: [PATCH] :art: Support for opening file history on the doc tree https://github.com/siyuan-note/siyuan/issues/8448 --- kernel/model/history.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/model/history.go b/kernel/model/history.go index 93d59bfdf..c76b62fff 100644 --- a/kernel/model/history.go +++ b/kernel/model/history.go @@ -313,7 +313,7 @@ type HistoryItem struct { func FullTextSearchHistory(query, box, op string, typ, page int) (ret []string, pageCount, totalCount int) { query = gulu.Str.RemoveInvisible(query) - if "" != query { + if "" != query && HistoryTypeDocID != typ { query = stringQuery(query) }