From: divverent Date: Fri, 25 Jan 2008 09:47:10 +0000 (+0000) Subject: fix tab completion spam X-Git-Tag: xonotic-v0.1.0preview~2503 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=682c13beba95014c89c25f8ebec398a32a831d83;p=xonotic%2Fdarkplaces.git fix tab completion spam git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8009 d7cf8633-e32d-0410-b094-e92efae38249 --- 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 } } }