mirror of
https://git.code.sf.net/p/quake/quake2forge
synced 2024-11-10 07:12:01 +00:00
Slight fix for corner case cmd/cvar completion
This commit is contained in:
parent
9fa7e5e7ba
commit
3ecc9cc96d
1 changed files with 1 additions and 1 deletions
|
@ -182,7 +182,7 @@ void CompleteCommand(void){
|
||||||
cvar = Cvar_CompleteVariable(partial); //so try cvars
|
cvar = Cvar_CompleteVariable(partial); //so try cvars
|
||||||
|
|
||||||
if(cvar){ //found something
|
if(cvar){ //found something
|
||||||
if(!strcmp(cvar, partial)) cmd = cvar; //exact cvar match
|
if(!cmd || !strcmp(cvar, partial)) cmd = cvar; //exact cvar match or no cmd
|
||||||
else cmd = NULL; //no exact match, partial for both
|
else cmd = NULL; //no exact match, partial for both
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue