]> granicus.if.org Git - mutt/commitdiff
Fix alias completion when the alias is entered as part of a group.
authorThomas Roessler <roessler@does-not-exist.org>
Mon, 12 May 2003 16:21:26 +0000 (16:21 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Mon, 12 May 2003 16:21:26 +0000 (16:21 +0000)
(E.g., The Tea Party: alias1, alias2, alias3;)

enter.c

diff --git a/enter.c b/enter.c
index 56dcb25787bcc7ec50cd5213a5c06d6cbd8a6c13..bd436ba5c0c34b39d5a9c6060aee686946172544 100644 (file)
--- a/enter.c
+++ b/enter.c
@@ -483,7 +483,8 @@ int _mutt_enter_string (char *buf, size_t buflen, int y, int x,
          else if (flags & M_ALIAS)
          {
            /* invoke the alias-menu to get more addresses */
-           for (i = state->curpos; i && state->wbuf[i-1] != ','; i--)
+           for (i = state->curpos; i && state->wbuf[i-1] != ',' && 
+                state->wbuf[i-1] != ':'; i--)
              ;
            for (; i < state->lastchar && state->wbuf[i] == ' '; i++)
              ;