branch: externals/org-gnosis commit 6753a5f4858be53c3a221e5c6193721d77b7ccf1 Author: Thanos Apollo <pub...@thanosapollo.org> Commit: Thanos Apollo <pub...@thanosapollo.org>
Fix prompt for tags with new db. --- org-gnosis.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/org-gnosis.el b/org-gnosis.el index bb1732cca9..d1023fc0fb 100644 --- a/org-gnosis.el +++ b/org-gnosis.el @@ -395,9 +395,11 @@ Delete file contents in database & file." (tags (cadr item)) (propertized-tags (when tags - (concat (propertize "#" 'face 'org-gnosis-face-tags) - (propertize (mapconcat #'identity tags "#") - 'face 'org-gnosis-face-tags))))) + (let ((tag-list (if (stringp tags) (read tags) tags))) + (when (and tag-list (not (equal tag-list '()))) + (concat (propertize "#" 'face 'org-gnosis-face-tags) + (propertize (mapconcat #'identity tag-list "#") + 'face 'org-gnosis-face-tags))))))) (if propertized-tags (format "%s %s" title propertized-tags) title)))