summaryrefslogtreecommitdiffstats
path: root/enter.c
diff options
context:
space:
mode:
Diffstat (limited to 'enter.c')
-rw-r--r--enter.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/enter.c b/enter.c
index a7981ccc..b575db04 100644
--- a/enter.c
+++ b/enter.c
@@ -412,6 +412,15 @@ int mutt_enter_string (unsigned char *buf, size_t buflen, int y, int x,
mutt_alias_menu ((char *) buf, buflen, Aliases);
return (1);
}
+ else if (flags & M_COMMAND)
+ {
+ buf[curpos] = 0;
+ if (mutt_command_complete ((char *) buf, buflen, curpos))
+ {
+ redraw = M_REDRAW_INIT;
+ continue;
+ }
+ }
else if (flags & (M_FILE | M_EFILE))
{
buf[curpos] = 0;