summaryrefslogtreecommitdiffstats
path: root/keymap.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1998-10-07 17:09:03 +0000
committerThomas Roessler <roessler@does-not-exist.org>1998-10-07 17:09:03 +0000
commit0ab0eec0a8b8e562a06d0ea14d232c6f1f034c32 (patch)
tree92181497c6b0d91be0846cb374684cd71398590c /keymap.c
parent4bb6cfc49878fa27d9a7a9d0e309b1ebacb24d97 (diff)
Fix macro functions for the pager menu.
Diffstat (limited to 'keymap.c')
-rw-r--r--keymap.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/keymap.c b/keymap.c
index af6b97d5..24fc53a5 100644
--- a/keymap.c
+++ b/keymap.c
@@ -350,15 +350,15 @@ int km_dokey (int menu)
char *func = NULL;
struct binding_t *bindings;
- /* is this a valid op for the current menu? */
- bindings = km_get_table (CurrentMenu);
+ /* is this a valid op for this menu? */
+ bindings = km_get_table (menu);
if ((func = get_func (bindings, tmp.op)))
return tmp.op;
if (menu == MENU_EDITOR && get_func (OpEditor, tmp.op))
return tmp.op;
- if (menu != MENU_EDITOR && CurrentMenu != MENU_PAGER)
+ if (menu != MENU_EDITOR && menu != MENU_PAGER)
{
/* check generic menu */
bindings = OpGeneric;
@@ -804,11 +804,12 @@ int mutt_parse_exec (BUFFER *buf, BUFFER *s, unsigned long data, BUFFER *err)
mutt_extract_token (buf, s, 0);
command = buf->data;
- if ((bindings = km_get_table (CurrentMenu)) == NULL)
+ if ((bindings = km_get_table (CurrentMenu)) == NULL
+ && CurrentMenu != MENU_PAGER)
bindings = OpGeneric;
ops[nops] = get_op (bindings, command, strlen(command));
- if (ops[nops] == OP_NULL)
+ if (ops[nops] == OP_NULL && CurrentMenu != MENU_PAGER)
ops[nops] = get_op (OpGeneric, command, strlen(command));
if (ops[nops] == OP_NULL)