mirror of https://github.com/djcb/mu.git
Merge pull request #2413 from tsdh/maildir-with-whitespace-completion
Multiword maildirs are not quoted when autocomplete is used (fixes #2…
This commit is contained in:
commit
deb32c5c06
|
@ -389,7 +389,13 @@ status, STATUS."
|
|||
((looking-back "maildir:\\([a-zA-Z0-9/.]*\\)" nil)
|
||||
(list (match-beginning 1)
|
||||
(match-end 1)
|
||||
(mu4e-get-maildirs)))
|
||||
(mapcar (lambda (dir)
|
||||
;; Quote maildirs with whitespace in their name, e.g.,
|
||||
;; maildir:"Foobar/Junk Mail".
|
||||
(if (string-match-p "[[:space:]]" dir)
|
||||
(concat "\"" dir "\"")
|
||||
dir))
|
||||
(mu4e-get-maildirs))))
|
||||
((looking-back "prio:\\(\\w*\\)" nil)
|
||||
(list (match-beginning 1)
|
||||
(match-end 1)
|
||||
|
|
Loading…
Reference in New Issue