From a759b9f4ebe60b9b22dcaf25bd1e6677b9c4ed44 Mon Sep 17 00:00:00 2001 From: sezero Date: Sat, 20 Feb 2010 08:29:48 +0000 Subject: [PATCH] console.c (Con_TabComplete): added a workaround after the weirdness that has been happening with the argument completion for the changelevel command after the completion changes. from Steven. git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@75 af15c1b1-3010-417e-b628-4374ebc0bcbd --- Quake/console.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Quake/console.c b/Quake/console.c index 76b1bf1d..43fe4449 100644 --- a/Quake/console.c +++ b/Quake/console.c @@ -1028,6 +1028,11 @@ void Con_TabComplete (void) key_lines[edit_line][key_linepos] = ' '; key_linepos++; key_lines[edit_line][key_linepos] = 0; + // S.A.: the map argument completion (may be in combination with the bash-style + // display behavior changes, causes weirdness when completing the arguments for + // the changelevel command. the line below "fixes" it, although I'm not sure about + // the reason, yet, neither do I know any possible side effects of it: + c = key_lines[edit_line] + key_linepos; } }