Merge pull request #2439 from progfolio/fix/nil-alt

mu4e--main-action: guard against nil ALT argument
This commit is contained in:
Dirk-Jan C. Binnema
2023-02-23 19:36:12 +02:00
committed by GitHub

View File

@ -192,7 +192,7 @@ use ALT as a substitute.
If the first letter after the [@] is equal to the last letter of the If the first letter after the [@] is equal to the last letter of the
binding representation, remove that first letter." 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))) (mu4e-error "No binding for %s" cmd)))
(bindstr (bindstr
(if (and alt (> (length bindstr) 1)) alt bindstr)) (if (and alt (> (length bindstr) 1)) alt bindstr))