🎨 面包屑可能出现光标插入符

This commit is contained in:
Liang Ding 2023-02-10 14:41:47 +08:00
parent b6ea32462e
commit 3cfe083ed9
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -26,6 +26,7 @@ import (
"github.com/88250/gulu"
"github.com/88250/lute/ast"
"github.com/88250/lute/editor"
"github.com/88250/lute/parse"
"github.com/siyuan-note/logging"
"github.com/siyuan-note/siyuan/kernel/sql"
@ -283,6 +284,7 @@ func buildBlockBreadcrumb(node *ast.Node, excludeTypes []string) (ret []*BlockPa
}
}
name = strings.ReplaceAll(name, editor.Caret, "")
if add {
ret = append([]*BlockPath{{
ID: id,