summaryrefslogtreecommitdiffstats
path: root/enter.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1999-06-14 18:11:15 +0000
committerThomas Roessler <roessler@does-not-exist.org>1999-06-14 18:11:15 +0000
commit35ac12bba5c3065afc25474dd21588da70ea42de (patch)
tree9132413f70ade60c3281f5b81f2b79885de67587 /enter.c
parent9d7a068b02086edc196cd68fea917040ecd428f9 (diff)
Completion fixes from Gero Treuner <gero@faveve.uni-stuttgart.de>.
Diffstat (limited to 'enter.c')
-rw-r--r--enter.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/enter.c b/enter.c
index b85bf3d0..337bb0bd 100644
--- a/enter.c
+++ b/enter.c
@@ -336,19 +336,14 @@ int _mutt_enter_string (unsigned char *buf, size_t buflen, int y, int x,
{
/* invoke the alias-menu to get more addresses */
buf[curpos] = 0;
- if (curpos)
+ for (j = curpos - 1 ; j >= 0 && buf[j] != ',' ; j--);
+ for (++j; buf[j] == ' '; j++)
+ ;
+ if (mutt_alias_complete ((char *) buf + j, buflen - j))
{
- for (j = curpos - 1 ; j >= 0 && buf[j] != ',' ; j--);
- for (++j; buf[j] == ' '; j++)
- ;
- if (mutt_alias_complete ((char *) buf + j, buflen - j))
- {
- redraw = M_REDRAW_INIT;
- continue;
- }
+ redraw = M_REDRAW_INIT;
+ continue;
}
- else
- mutt_alias_menu ((char *) buf, buflen, Aliases);
return (1);
}
else if (flags & M_COMMAND)