From: Rocco Rutte Date: Sat, 22 Nov 2008 16:29:11 +0000 (+0100) Subject: Make what-key function available in pager-based menus, too X-Git-Tag: neomutt-20160307~880 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0275dcb6ff1eab916962bd0bdaecb57337e2bec1;p=neomutt Make what-key function available in pager-based menus, too --- diff --git a/UPDATING b/UPDATING index 583ff615f..3a1fc8170 100644 --- a/UPDATING +++ b/UPDATING @@ -6,6 +6,7 @@ The keys used are: hg tip: + + function works in pager, too + support for tokyocabinet (qdbm successor) ! $move now defaults to "no" instead of "ask-no" + $imap_pipeline_depth controls the number of commands that mutt can issue diff --git a/functions.h b/functions.h index fb52018f3..b34c56671 100644 --- a/functions.h +++ b/functions.h @@ -264,6 +264,7 @@ struct binding_t OpPager[] = { /* map: pager */ { "decrypt-copy", OP_DECRYPT_COPY, NULL }, { "decrypt-save", OP_DECRYPT_SAVE, NULL }, + { "what-key", OP_WHAT_KEY, NULL }, { NULL, 0, NULL } }; diff --git a/keymap.c b/keymap.c index dbdde0875..bcc00226c 100644 --- a/keymap.c +++ b/keymap.c @@ -1000,4 +1000,5 @@ void mutt_what_key (void) while (ch != ERR && ch != ctrl ('G')); mutt_flushinp(); + mutt_clear_error(); } diff --git a/pager.c b/pager.c index e680a2516..74238baaf 100644 --- a/pager.c +++ b/pager.c @@ -2671,6 +2671,10 @@ search_next: redraw = REDRAW_FULL; break; + case OP_WHAT_KEY: + mutt_what_key (); + break; + default: ch = -1; break;