fix: CTRL+z on config files goes back to previous page

fixed https://github.com/logseq/db-test/issues/169
This commit is contained in:
Tienson Qin
2024-12-15 20:58:03 +08:00
parent 4cb793e1e8
commit 1f86f47c3d
2 changed files with 36 additions and 34 deletions

View File

@@ -1363,7 +1363,7 @@ Similar to re-frame subscriptions"
(defn into-code-editor-mode!
[]
(set-state! :editor/cursor-range nil)
(swap! state merge {:editor/code-mode? true}))
(swap! state assoc :editor/code-mode? true))
(defn set-editor-last-pos!
[new-pos]