From: Thomas Roessler Date: Thu, 24 Sep 1998 14:12:20 +0000 (+0000) Subject: Vikas' merged completion patch, level 3. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1102bb1d613f734b9a4d12d6c142aee90b159e85;p=neomutt Vikas' merged completion patch, level 3. --- diff --git a/init.c b/init.c index 726571fd2..5b8177c0f 100644 --- a/init.c +++ b/init.c @@ -1220,6 +1220,9 @@ int mutt_command_complete (char *buffer, size_t len, int pos, int numtabs) return 1; } + if (Completed[0] == 0 && User_typed[0]) + return 0; + /* Num_matched will _always_ be atleast 1 since the initial * user-typed string is always stored */ if (numtabs == 1 && Num_matched == 2) @@ -1270,6 +1273,9 @@ int mutt_command_complete (char *buffer, size_t len, int pos, int numtabs) return 1; } + if (Completed[0] == 0 && User_typed[0]) + return 0; + /* Num_matched will _always_ be atleast 1 since the initial * user-typed string is always stored */ if (numtabs == 1 && Num_matched == 2)