* Add test for #257
Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
* Fix#257
Explicitly distinguish between replacing with `nil` and not replacing at
all.
I'm also simplifying the code by making all the branches more explicit.
This is a little longer, but makes all the clauses obvious.
Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
Add which-key-allow-multiple-replacements which can be set to allow multiple
replacements from which-key-replacement-alist to apply to a key binding.
Switch from using assoc-default to find replacements to
which-key--get-replacements.
Adjusts tests and add a new one for multiple replacements.