chore: get rid of dec & inc

This commit is contained in:
Yukun Guo
2020-12-14 18:38:28 +08:00
parent f1add88799
commit 5f8915b304
2 changed files with 3 additions and 3 deletions

View File

@@ -145,7 +145,7 @@
(when-let [node (gdom/getElement (str id))]
(when-let [cursor-range (state/get-cursor-range)]
(when-let [range (string/trim cursor-range)]
(let [pos (inc (diff/find-position markup range))]
(let [pos (diff/find-position markup range)]
(util/set-caret-pos! node pos)))))))
(defn block-content-join-newlines