Return document blocks when search hits different block content https://github.com/siyuan-note/siyuan/issues/10584

This commit is contained in:
Daniel 2024-10-26 23:43:33 +08:00
parent 655d1fb6b9
commit 66c6d71888
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -1593,7 +1593,7 @@ func fromSQLBlock(sqlBlock *sql.Block, terms string, beforeLen int) (block *Bloc
}
}
hPath, _ := markSearch(sqlBlock.HPath, terms, 18)
hPath, _ := markSearch(sqlBlock.HPath, "", 18)
if !strings.HasPrefix(hPath, "/") {
hPath = "/" + hPath
}