X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=emacs%2Fnotmuch-tree.el;h=37a5d1c843015c6226ec217f2d59bda414473914;hp=827acebf7a83bf667c1d0a8f41622c43bd82df39;hb=dfb1b8eb89e814f4bf6f6e62b700c72aa1b4659a;hpb=18d289c86309ae796e6f027c289b17ccdd38f220 diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el index 827acebf..37a5d1c8 100644 --- a/emacs/notmuch-tree.el +++ b/emacs/notmuch-tree.el @@ -1020,8 +1020,8 @@ the same as for the function notmuch-tree." (erase-buffer) (goto-char (point-min)) (let* ((search-args (concat basic-query - (if query-context - (concat " and (" query-context ")")))) + (and query-context + (concat " and (" query-context ")")))) (message-arg (if unthreaded "--unthreaded" "--entire-thread"))) (if (equal (car (process-lines notmuch-command "count" search-args)) "0") (setq search-args basic-query))