mirror of
https://github.com/logseq/logseq.git
synced 2026-05-04 02:46:45 +00:00
fix: at times can't indent and out-dent an existing bullet
Related to #1386
This commit is contained in:
@@ -2015,7 +2015,8 @@
|
||||
;; :last-start-pos @last-start-pos})
|
||||
file-path (:file/path file)
|
||||
file-content (db/get-file file-path)
|
||||
new-content (utf8/insert! file-content start-pos old-end-pos (apply str (map :block/content blocks)))]
|
||||
new-content (utf8/insert! file-content start-pos old-end-pos (apply str (map :block/content blocks)))
|
||||
blocks (map (fn [b] (dissoc b :block/children)) blocks)]
|
||||
(profile
|
||||
"Indent/outdent: "
|
||||
(repo-handler/transact-react-and-alter-file!
|
||||
|
||||
Reference in New Issue
Block a user