]> granicus.if.org Git - neomutt/commitdiff
Permit tab completion of pattern expressions with ~y (labels).
authorKevin McCarthy <kevin@8t8.us>
Tue, 31 Jan 2017 22:27:28 +0000 (14:27 -0800)
committerRichard Russon <rich@flatcap.org>
Fri, 10 Feb 2017 03:32:55 +0000 (03:32 +0000)
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.

enter.c

diff --git a/enter.c b/enter.c
index 1132c94bb8ae3a1056c9d8ea94e748128009b47e..bbc29ed6038a4163f7d45a535d1818b11716fe42 100644 (file)
--- 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--)