Address comment. Thanks Junyi

This commit is contained in:
llcc
2022-03-02 14:34:22 +08:00
parent 1d420965bd
commit f90fca132b
3 changed files with 10 additions and 13 deletions

View File

@@ -554,7 +554,7 @@
(count (util/safe-re-find re-pattern prefix))))
new-value (str (subs edit-content 0 pos)
(string/replace-first (subs edit-content pos)
(marker/marker-pattern)
(marker/marker-pattern format)
(str marker " ")))]
(state/set-edit-content! input-id new-value)
(let [new-pos (compute-pos-delta-when-change-marker