X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=emacs%2Fnotmuch.el;h=27e3a4094c398f9b7393ae19565ba611a1bab21b;hb=f2ebe3ac446afda9ced6507dc391865464ccdcaa;hp=9b2b5924e856bfc973564c531f9310d9a3516e32;hpb=a4669217600e4536dc0c49f0255af5e2d9bc183f;p=obsolete%2Fnotmuch-old diff --git a/emacs/notmuch.el b/emacs/notmuch.el index 9b2b5924..27e3a409 100644 --- a/emacs/notmuch.el +++ b/emacs/notmuch.el @@ -663,7 +663,7 @@ characters as well as `_.+-'. (defun notmuch-search-buffer-title (query) "Returns the title for a buffer with notmuch search results." (let* ((folder (rassoc-if (lambda (key) - (string-match (concat "^" (regexp-quote key)) + (string-match (concat "^" (regexp-quote key) "$") query)) (notmuch-saved-searches))) (folder-name (car folder))