mu4e: escape % in queries when updating the mode-string

This commit is contained in:
Yuri D'Elia 2016-02-14 20:00:43 +01:00
parent 8d4b866383
commit ac0b1b755a
1 changed files with 3 additions and 1 deletions

View File

@ -998,7 +998,9 @@ the query history stack."
global-mode-string
'(:eval
(concat
(propertize mu4e~headers-last-query 'face 'mu4e-modeline-face)
(propertize
(replace-regexp-in-string "%" "%%" mu4e~headers-last-query t t)
'face 'mu4e-modeline-face)
" "
(mu4e-context-label)))))