diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1998-10-07 15:43:00 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1998-10-07 15:43:00 +0000 |
commit | 322419252b593ded82d2db53c68a0930f35ae807 (patch) | |
tree | 3e424bb3731999960629d60ae481c67a5ba28891 /keymap.c | |
parent | a3a0943dbffe83d4d3a43beafdbde9dd2955070e (diff) |
Fix the error message for unbound keys. From Vikas.
Diffstat (limited to 'keymap.c')
-rw-r--r-- | keymap.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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."); |