]> granicus.if.org Git - neomutt/commitdiff
Vikas' merged completion patch, level 3.
authorThomas Roessler <roessler@does-not-exist.org>
Thu, 24 Sep 1998 14:12:20 +0000 (14:12 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Thu, 24 Sep 1998 14:12:20 +0000 (14:12 +0000)
init.c

diff --git a/init.c b/init.c
index 726571fd264ef7f1b498210320c4e272323ccd9a..5b8177c0fd5a170dcf5cafbd46ef0b725ebeff8d 100644 (file)
--- 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)