mirror of
https://github.com/logseq/logseq.git
synced 2026-05-04 19:06:21 +00:00
chore: get rid of dec & inc
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user