From: Thomas Roessler Date: Mon, 12 May 2003 16:21:26 +0000 (+0000) Subject: Fix alias completion when the alias is entered as part of a group. X-Git-Tag: pre-type-punning-patch~81 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=951d9c5539d6b3789f51f04cd99a5891165f4d6b;p=mutt Fix alias completion when the alias is entered as part of a group. (E.g., The Tea Party: alias1, alias2, alias3;) --- diff --git a/enter.c b/enter.c index 56dcb257..bd436ba5 100644 --- 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++) ;