mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-12-14 06:01:10 +00:00
* Tab completed commands no longer treated like cvars
This commit is contained in:
parent
d6b2a1e527
commit
f01ed7b3da
1 changed files with 16 additions and 4 deletions
|
@ -3209,11 +3209,23 @@ static void FindMatches( const char *s ) {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
===============
|
===============
|
||||||
PrintMatches
|
PrintCmdMatches
|
||||||
|
|
||||||
===============
|
===============
|
||||||
*/
|
*/
|
||||||
static void PrintMatches( const char *s ) {
|
static void PrintCmdMatches( const char *s ) {
|
||||||
|
if ( !Q_stricmpn( s, shortestMatch, strlen( shortestMatch ) ) ) {
|
||||||
|
Com_Printf( " %s\n", s );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
===============
|
||||||
|
PrintCvarMatches
|
||||||
|
|
||||||
|
===============
|
||||||
|
*/
|
||||||
|
static void PrintCvarMatches( const char *s ) {
|
||||||
if ( !Q_stricmpn( s, shortestMatch, strlen( shortestMatch ) ) ) {
|
if ( !Q_stricmpn( s, shortestMatch, strlen( shortestMatch ) ) ) {
|
||||||
Com_Printf( " %s = \"%s\"\n", s, Cvar_VariableString( s ) );
|
Com_Printf( " %s = \"%s\"\n", s, Cvar_VariableString( s ) );
|
||||||
}
|
}
|
||||||
|
@ -3309,6 +3321,6 @@ void Field_CompleteCommand( field_t *field ) {
|
||||||
Com_Printf( "]%s\n", completionField->buffer );
|
Com_Printf( "]%s\n", completionField->buffer );
|
||||||
|
|
||||||
// run through again, printing matches
|
// run through again, printing matches
|
||||||
Cmd_CommandCompletion( PrintMatches );
|
Cmd_CommandCompletion( PrintCmdMatches );
|
||||||
Cvar_CommandCompletion( PrintMatches );
|
Cvar_CommandCompletion( PrintCvarMatches );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue