about summary refs log tree commit diff
path: root/users/grfn/emacs.d/org-query.el
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2021-12-01T21·27-0500
committerGriffin Smith <grfn@gws.fyi>2021-12-03T17·23-0500
commit909c1d02a2da1bade509d43eaf0b8abd9066c362 (patch)
tree09aff62e8835f11db2c5b971cd2811b5bbd0acf6 /users/grfn/emacs.d/org-query.el
parent9eec83843e6d14bf724abf05430f2f5a2a564b6b (diff)
fix(gs/emacs): Return empty string if nothing in inbox r/3140
otherwise we'd return the string "nil", which with the substring-ing
that was happening would end up as "Inbox: i" in the status bar

Change-Id: I567a6042b592dd9313bfa22d480c22936494a8c1
Diffstat (limited to 'users/grfn/emacs.d/org-query.el')
-rw-r--r--users/grfn/emacs.d/org-query.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/users/grfn/emacs.d/org-query.el b/users/grfn/emacs.d/org-query.el
index 9dcdeeba12d7..0b987280f2a1 100644
--- a/users/grfn/emacs.d/org-query.el
+++ b/users/grfn/emacs.d/org-query.el
@@ -49,7 +49,7 @@
 
 (defun grfn/num-inbox-items-message ()
   (let ((n (grfn/num-inbox-items)))
-    (unless (zerop n)
+    (if (zerop n) ""
       (format "%d %s"
               n
               (if (= 1 n) "item" "items")))))