From: Kevin McCarthy Date: Tue, 31 Jan 2017 22:27:28 +0000 (-0800) Subject: Permit tab completion of pattern expressions with ~y (labels). X-Git-Tag: neomutt-20170225~33^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4f976865248181a2cc36de54023ee2e91bf5edba;p=neomutt Permit tab completion of pattern expressions with ~y (labels). Thanks to David Champion for the original patch. This version is slightly different, as I couldn't get the original patch working. This version simply scans backward for the first ~, and if it is ~y, invokes completion. --- diff --git a/enter.c b/enter.c index 1132c94bb..bbc29ed60 100644 --- a/enter.c +++ b/enter.c @@ -605,7 +605,6 @@ int _mutt_enter_string (char *buf, size_t buflen, int col, } else if (flags & MUTT_ALIAS && ch == OP_EDITOR_COMPLETE_QUERY) { - /* invoke the query-menu to get more addresses */ if ((i = state->curpos)) { for (; i && state->wbuf[i - 1] != ','; i--)