From b16a767f51441471178eebeeef8496843cee59e5 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sat, 26 Dec 2009 16:34:17 -0800 Subject: [PATCH] Look at whitespace to separate folder name from count This allows folder names to contain any non-blank characters Signed-off-by: Keith Packard --- notmuch.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notmuch.el b/notmuch.el index af45a21a..065ea86f 100644 --- a/notmuch.el +++ b/notmuch.el @@ -1537,8 +1537,8 @@ Currently available key bindings: (save-excursion (beginning-of-line) (let ((beg (point))) - (forward-word) - (filter-buffer-substring beg (point))))) + (re-search-forward "\\([ \t]*[^ \t]+\\)") + (filter-buffer-substring (match-beginning 1) (match-end 1))))) (defun notmuch-folder-show-search (&optional folder) "Show a search window for the search related to the specified folder."