summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnosis.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/gnosis.el b/gnosis.el
index b15e42f..7f7fde4 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -1028,9 +1028,9 @@ Used to reveal all clozes left with `gnosis-face-cloze-unanswered' face."
(func-name (intern (format "gnosis-review-%s" (downcase type)))))
(if (fboundp func-name)
(progn
- (with-current-buffer (switch-to-buffer (get-buffer-create "*gnosis*"))
- (gnosis-mode)
- (funcall func-name id)))
+ (pop-to-buffer (get-buffer-create "*gnosis*"))
+ (gnosis-mode)
+ (funcall func-name id))
(error "Malformed note type: '%s'" type))))