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
This commit is contained in:
sezero 2010-02-20 08:29:48 +00:00
parent 7a3e347d0a
commit a759b9f4eb
1 changed files with 5 additions and 0 deletions

View File

@ -1028,6 +1028,11 @@ void Con_TabComplete (void)
key_lines[edit_line][key_linepos] = ' '; key_lines[edit_line][key_linepos] = ' ';
key_linepos++; key_linepos++;
key_lines[edit_line][key_linepos] = 0; 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;
} }
} }