From 94f5ede09053a41a1de348085555bbb8bc723dfe Mon Sep 17 00:00:00 2001 From: Vanessa Date: Thu, 13 Oct 2022 11:53:26 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/6152 --- app/src/protyle/hint/index.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/protyle/hint/index.ts b/app/src/protyle/hint/index.ts index 1866e2753..925a59684 100644 --- a/app/src/protyle/hint/index.ts +++ b/app/src/protyle/hint/index.ts @@ -128,9 +128,8 @@ ${unicode2Emoji(emoji.unicode, true)}`; const currentLineValue = protyle.toolbar.range.startContainer.textContent.substring(0, start) || ""; const key = this.getKey(currentLineValue, protyle.options.hint.extend); if (typeof key === "undefined" || - ( // 除 emoji 提示外,其余在 tag/inline math/inline-code 内移动不进行提示 - this.splitChar !== ":" && - (protyle.toolbar.getCurrentType(protyle.toolbar.range).length > 0 || hasClosestByAttribute(protyle.toolbar.range.startContainer, "data-type", "NodeCodeBlock")) + ( // 除 emoji 提示外,其余在 inline-code 内移动不进行提示 + this.splitChar !== ":" && hasClosestByAttribute(protyle.toolbar.range.startContainer, "data-type", "NodeCodeBlock") ) ) { this.element.classList.add("fn__none");