From 682c13beba95014c89c25f8ebec398a32a831d83 Mon Sep 17 00:00:00 2001 From: divverent Date: Fri, 25 Jan 2008 09:47:10 +0000 Subject: [PATCH] fix tab completion spam git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8009 d7cf8633-e32d-0410-b094-e92efae38249 --- console.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/console.c b/console.c index a70c05e2..8b401a7b 100644 --- a/console.c +++ b/console.c @@ -2308,7 +2308,7 @@ void Con_CompleteCommandLine (void) if(slash) { strlcpy(t, s, min(sizeof(t), (unsigned int)(slash - s + 2))); // + 2, because I want to include the slash - strlcat(t, "/*", sizeof(t)); + strlcat(t, "*", sizeof(t)); search = FS_Search(t, true, true); } else @@ -2384,6 +2384,8 @@ void Con_CompleteCommandLine (void) } stringlistfreecontents(&resultbuf); stringlistfreecontents(&dirbuf); + + return; // bail out, when we complete for a command that wants a file name } } } -- 2.39.2