summaryrefslogtreecommitdiff
path: root/gnosis.el
diff options
context:
space:
mode:
Diffstat (limited to 'gnosis.el')
-rw-r--r--gnosis.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnosis.el b/gnosis.el
index f513df1..bb91de3 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -711,7 +711,7 @@ Set SPLIT to t to split all input given."
(defun gnosis-get-note-deck-name (id)
"Return deck name of note ID."
(let ((deck (gnosis-get 'deck-id 'notes `(= id ,id))))
- (gnosis--get-deck-name deck)))
+ (and deck (gnosis--get-deck-name deck))))
(defun gnosis-get-deck--note (id &optional name)
"Get deck id for note ID.