diff options
| author | Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> | 2026-04-19 16:36:17 +0300 |
|---|---|---|
| committer | Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> | 2026-04-19 16:36:17 +0300 |
| commit | 78bca92578877e0833658078cadb0bb31a26ee79 (patch) | |
| tree | c2b50a41ad9d1d9d8bb7240987f6357af2fcd29d /mu4e | |
| parent | fcf764b73e497f3ed65d177a1ff12070b583dadd (diff) | |
mu4e-search: filter out control chars
Help users fat-fingering queries.
Diffstat (limited to 'mu4e')
| -rw-r--r-- | mu4e/mu4e-search.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mu4e/mu4e-search.el b/mu4e/mu4e-search.el index d694b65..ac1b1d9 100644 --- a/mu4e/mu4e-search.el +++ b/mu4e/mu4e-search.el @@ -203,6 +203,7 @@ with the favorite bookmark's query." (if (or (null expr) edit) (mu4e-search-read-query prompt expr) expr)) + (expr (replace-regexp-in-string (rx control) " " expr)) (expr (if mu4e-query-rewrite-function ;; rewrite? (funcall mu4e-query-rewrite-function expr) expr))) (mu4e-mark-handle-when-leaving) |
