瀏覽代碼

fix: don't create a space between # and [[]] when auto-complete

Tienson Qin 3 年之前
父節點
當前提交
dc90bcf32e
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/main/frontend/commands.cljs

+ 1 - 0
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)))))))]