summaryrefslogtreecommitdiff
path: root/gnosis.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-02-28 01:57:05 +0200
committerThanos Apollo <[email protected]>2024-02-28 01:57:05 +0200
commit15d32f01f7aa50742efa48c46576b903d7fc35c8 (patch)
treef5592fc1bd54ca36bc16c579eaad4e6007d268fd /gnosis.el
parent279c40fabb90a1cf51cda141a307e7cd8d0590d5 (diff)
gnosis-prompt-tags--split: Return "untagged" when input value is nil
Having "" tag should be avoided.
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 3cd62d9..1b0518f 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -886,7 +886,7 @@ provided, use it as the default value."
(let* ((previous-note-tags (or nil previous-note-tags))
(tags (split-string (read-from-minibuffer "Tags: " (mapconcat #'identity previous-note-tags " ")) " ")))
(setf gnosis-previous-note-tags tags)
- tags))
+ (if (equal tags '("")) '("untagged") tags)))
;; Review
;;;;;;;;;;