mirror of https://github.com/djcb/mu.git
mu4e--main-action: guard against nil ALT argument
Otherwise, if ALT is not provided the initial binding of bindstr can fail with: Wrong type argument: characterp, nil
This commit is contained in:
parent
558745bf00
commit
45ecfebce5
|
@ -192,7 +192,7 @@ use ALT as a substitute.
|
|||
|
||||
If the first letter after the [@] is equal to the last letter of the
|
||||
binding representation, remove that first letter."
|
||||
(let* ((bindstr (or bindstr (mu4e-key-description cmd) (string alt)
|
||||
(let* ((bindstr (or bindstr (mu4e-key-description cmd) (and alt (string alt))
|
||||
(mu4e-error "No binding for %s" cmd)))
|
||||
(bindstr
|
||||
(if (and alt (> (length bindstr) 1)) alt bindstr))
|
||||
|
|
Loading…
Reference in New Issue