aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-09-15 16:47:22 -0400
committerbobzel <zzzman@gmail.com>2020-09-15 16:47:22 -0400
commitfad74a2d613b30a94aad8a65cfd8db7b916a7ea6 (patch)
tree2ce409eb31d9a2cda1130aef8503dd0f6564f9b7
parent187fe40883c8698ecf9401d4ecfba68a89096f6d (diff)
fixed upating of tags when #keywords are added
-rw-r--r--src/client/views/nodes/formattedText/RichTextRules.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/formattedText/RichTextRules.ts b/src/client/views/nodes/formattedText/RichTextRules.ts
index 06c73265a..10d679e45 100644
--- a/src/client/views/nodes/formattedText/RichTextRules.ts
+++ b/src/client/views/nodes/formattedText/RichTextRules.ts
@@ -322,7 +322,7 @@ export class RichTextRules {
const tag = match[1];
if (!tag) return state.tr;
this.Document[DataSym]["#" + tag] = "#" + tag;
- const tags = StrCast(this.Document.tags, ":");
+ const tags = StrCast(this.Document[DataSym].tags, ":");
if (!tags.includes(`#${tag}:`)) {
this.Document[DataSym].tags = `${tags + "#" + tag + ':'}`;
}