From 738d01b6b96e5845b42bea555f456d968cb93eb0 Mon Sep 17 00:00:00 2001 From: Patrick Winter Date: Wed, 6 Nov 2019 19:34:28 +0100 Subject: [PATCH] Don't display "nil" when no project is set --- taskwarrior.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/taskwarrior.el b/taskwarrior.el index e57cf00..ddb0429 100644 --- a/taskwarrior.el +++ b/taskwarrior.el @@ -261,7 +261,7 @@ (urgency (format "%0.2f" (alist-get 'urgency entry))) (priority (format " %s " (or (alist-get 'priority entry) ""))) (annotations (format "%d" (length (or (alist-get 'annotations entry) '())))) - (project (or (format "%s" (alist-get 'project entry)) "")) + (project (or (alist-get 'project entry) "")) (tags (or (taskwarrior--concat-tag-list (alist-get 'tags entry)) "")) (description (format "%s" (alist-get 'description entry)))) `(,id [,id ,urgency ,priority ,annotations ,project ,tags ,description])))