summaryrefslogtreecommitdiffstats
path: root/init.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2021-07-28 15:44:57 -0700
committerKevin McCarthy <kevin@8t8.us>2021-07-28 19:34:13 -0700
commit02298c190f6509762bd826a1aeeec43acd4c41da (patch)
tree8099ed50f648f0ae5e5ca54b648d8de01125aa4a /init.c
parent4021ab59f021abd84742ae36895158c7129cbb38 (diff)
Improve generic menu type handling.
Some of the menus are directly of MENU_GENERIC type. In a few places, Mutt handles those inefficiently or slightly incorrectly. Remove double "generic" lookups when Mutt is in a generic menu. Fix the help menu to not show unbound or "generic bindings" for a generic menu. For exec completion, always add generic functions to the possible completion list.
Diffstat (limited to 'init.c')
-rw-r--r--init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.c b/init.c
index ab2a3515..5dc6ac4b 100644
--- a/init.c
+++ b/init.c
@@ -3272,7 +3272,7 @@ int mutt_command_complete (char *buffer, size_t len, int pos, int numtabs)
for (num = 0; menu[num].name; num++)
candidate (Completed, User_typed, menu[num].name, sizeof (Completed));
/* try the generic menu */
- if (Completed[0] == 0 && CurrentMenu != MENU_PAGER)
+ if (CurrentMenu != MENU_PAGER && CurrentMenu != MENU_GENERIC)
{
menu = OpGeneric;
for (num = 0; menu[num].name; num++)