mirror of
https://github.com/logseq/logseq.git
synced 2026-06-02 19:31:24 +00:00
fix: cmd-k search deletes unsaved changes
fixes https://github.com/logseq/db-test/issues/27
This commit is contained in:
@@ -3814,10 +3814,12 @@
|
||||
([]
|
||||
(escape-editing true))
|
||||
([select?]
|
||||
(if select?
|
||||
(when-let [node (some-> (state/get-input) (util/rec-get-node "ls-block"))]
|
||||
(state/exit-editing-and-set-selected-blocks! [node]))
|
||||
(state/clear-edit!))))
|
||||
(p/do!
|
||||
(save-current-block!)
|
||||
(if select?
|
||||
(when-let [node (some-> (state/get-input) (util/rec-get-node "ls-block"))]
|
||||
(state/exit-editing-and-set-selected-blocks! [node]))
|
||||
(state/clear-edit!)))))
|
||||
|
||||
(defn replace-block-reference-with-content-at-point
|
||||
[]
|
||||
|
||||
Reference in New Issue
Block a user