summaryrefslogtreecommitdiffstats
path: root/init.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1998-09-24 14:12:20 +0000
committerThomas Roessler <roessler@does-not-exist.org>1998-09-24 14:12:20 +0000
commitb91528213832e6344edc21370e50c8e621ec0d62 (patch)
treecfc7fde3e71266768cbc75f652c089d805ebe45a /init.c
parente20967563e6ff5093eaefb957388c8a26b931b43 (diff)
Vikas' merged completion patch, level 3.
Diffstat (limited to 'init.c')
-rw-r--r--init.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/init.c b/init.c
index 726571fd..5b8177c0 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)