mirror of https://github.com/djcb/mu.git
Fix asking maildir reading completing candidate is text-property
Some packages like `vertico-prescient` adding text-property to vertico candidates will break `mu4e-ask-maildir` response.
This commit is contained in:
parent
cd3c7b4c61
commit
9729e2bba8
|
@ -307,12 +307,13 @@ from all maildirs under `mu4e-maildir'."
|
||||||
(mu4e-read-option prompt
|
(mu4e-read-option prompt
|
||||||
(append options
|
(append options
|
||||||
'(("oOther..." . other)))))))
|
'(("oOther..." . other)))))))
|
||||||
|
(substring-no-properties
|
||||||
(if (eq response 'other)
|
(if (eq response 'other)
|
||||||
(progn
|
(progn
|
||||||
(funcall mu4e-completing-read-function prompt
|
(funcall mu4e-completing-read-function prompt
|
||||||
(mu4e-get-maildirs) nil nil
|
(mu4e-get-maildirs) nil nil
|
||||||
mu4e-maildir-initial-input))
|
mu4e-maildir-initial-input))
|
||||||
response)))
|
response))))
|
||||||
|
|
||||||
(defun mu4e-ask-maildir-check-exists (prompt)
|
(defun mu4e-ask-maildir-check-exists (prompt)
|
||||||
"Like `mu4e-ask-maildir', PROMPT for existence of the maildir.
|
"Like `mu4e-ask-maildir', PROMPT for existence of the maildir.
|
||||||
|
|
Loading…
Reference in New Issue