From dc90bcf32e9ee6d19a4db59253f217f49fceaec2 Mon Sep 17 00:00:00 2001 From: Tienson Qin Date: Tue, 27 Sep 2022 23:54:33 +0800 Subject: [PATCH] fix: don't create a space between # and [[]] when auto-complete --- src/main/frontend/commands.cljs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/frontend/commands.cljs b/src/main/frontend/commands.cljs index 40d7b4f30b..9571398231 100644 --- a/src/main/frontend/commands.cljs +++ b/src/main/frontend/commands.cljs @@ -344,6 +344,7 @@ (or (string/starts-with? last-pattern block-ref/left-parens) (string/starts-with? last-pattern page-ref/left-brackets))) (and s (string/starts-with? s "{{embed")) + (and s (= (last s) \#) (string/starts-with? last-pattern "[[")) (and last-pattern (or (string/ends-with? last-pattern gp-property/colons) (string/starts-with? last-pattern gp-property/colons)))))))]