Sfoglia il codice sorgente

fix: rm space when showing template popup

Andelf 4 anni fa
parent
commit
fae3f73662
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      src/main/frontend/commands.cljs

+ 3 - 0
src/main/frontend/commands.cljs

@@ -377,6 +377,9 @@
           postfix (subs edit-content current-pos)
           postfix (if postfix-fn (postfix-fn postfix) postfix)
           new-value (cond
+                      (string/blank? postfix)
+                      prefix
+
                       space?
                       (util/concat-without-spaces prefix postfix)