summaryrefslogtreecommitdiff
path: root/gnosis.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-02-20 13:26:55 +0200
committerThanos Apollo <[email protected]>2024-02-20 13:26:55 +0200
commitf5fa43148cd2f6f10a3064933aa41f9d7c3df144 (patch)
tree7201974bc6a15cbad0c654774bb96a60292ad8b9 /gnosis.el
parent50a05e728f034d3fba22d9d1c318897e95f2c3e3 (diff)
gnosis-edit-save-exit: Exit recursive edit IF we are in one
Diffstat (limited to 'gnosis.el')
-rw-r--r--gnosis.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/gnosis.el b/gnosis.el
index aac6840..569c466 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -1128,7 +1128,10 @@ changes."
(interactive)
(eval-buffer)
(kill-buffer)
- (exit-recursive-edit))
+ ;; exit recursive edit if we are in one
+ (if (>= (recursion-depth) 1)
+ (exit-recursive-edit)
+ (gnosis-dashboard)))
(defvar-keymap gnosis-edit-mode-map
:doc "gnosis-edit keymap"