summaryrefslogtreecommitdiffstats
path: root/keymap.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1998-10-07 15:43:00 +0000
committerThomas Roessler <roessler@does-not-exist.org>1998-10-07 15:43:00 +0000
commit322419252b593ded82d2db53c68a0930f35ae807 (patch)
tree3e424bb3731999960629d60ae481c67a5ba28891 /keymap.c
parenta3a0943dbffe83d4d3a43beafdbde9dd2955070e (diff)
Fix the error message for unbound keys. From Vikas.
Diffstat (limited to 'keymap.c')
-rw-r--r--keymap.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/keymap.c b/keymap.c
index 63cf4e3d..5f792e8a 100644
--- a/keymap.c
+++ b/keymap.c
@@ -600,8 +600,12 @@ void km_init (void)
void km_error_key (int menu)
{
char buf[SHORT_STRING];
+ struct keymap_t *key;
- if (km_expand_key (buf, sizeof (buf), km_find_func (menu, OP_HELP)))
+ if(!(key = km_find_func(menu, OP_HELP)))
+ key = km_find_func(MENU_GENERIC, OP_HELP);
+
+ if(km_expand_key(buf, sizeof(buf), key))
mutt_error (_("Key is not bound. Press '%s' for help."), buf);
else
mutt_error _("Key is not bound. See the manual.");