From e15f8f776919edaa15258537fd4598e759746b31 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Mon, 6 Feb 2023 18:08:41 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E6=94=AF=E6=8C=81=E5=BC=95=E7=94=A8?= =?UTF-8?q?=E8=BD=AC=E7=A7=BB=20https://github.com/siyuan-note/siyuan/issu?= =?UTF-8?q?es/4025?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/block.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/model/block.go b/kernel/model/block.go index 3671827a6..71c5c83e2 100644 --- a/kernel/model/block.go +++ b/kernel/model/block.go @@ -139,7 +139,7 @@ func TransferBlockRef(fromID, toID string) (err error) { for _, textMark := range textMarks { if textMark.IsTextMarkType("block-ref") && textMark.TextMarkBlockRefID == fromID { textMark.TextMarkBlockRefID = toID - if "s" == textMark.TextMarkBlockRefSubtype { + if "d" == textMark.TextMarkBlockRefSubtype { textMark.TextMarkTextContent = toRefText } } @@ -149,6 +149,7 @@ func TransferBlockRef(fromID, toID string) (err error) { return } } + util.ReloadUI() return }