diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1999-06-14 18:11:15 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1999-06-14 18:11:15 +0000 |
commit | 35ac12bba5c3065afc25474dd21588da70ea42de (patch) | |
tree | 9132413f70ade60c3281f5b81f2b79885de67587 /enter.c | |
parent | 9d7a068b02086edc196cd68fea917040ecd428f9 (diff) |
Completion fixes from Gero Treuner <gero@faveve.uni-stuttgart.de>.
Diffstat (limited to 'enter.c')
-rw-r--r-- | enter.c | 17 |
1 files changed, 6 insertions, 11 deletions
@@ -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) |