Daemon icon indicating copy to clipboard operation
Daemon copied to clipboard

cvar autocompletion and cvar printing do not print the same things

Open illwieckz opened this issue 4 years ago • 2 comments

/sv_master [tab]
   sv_master1 cvar - "master.unvanquished.net" - text - address of a master server 
   sv_master2 cvar - "master2.unvanquished.net" - text - address of a master server 
   sv_master3 cvar - "" - text - address of a master server 
   sv_master4 cvar - "" - text - address of a master server 
   sv_master5 cvar - "" - text - address of a master server 
/sv_master1  
"sv_master1" - text - address of a master server - default: "master.unvanquished.net"

illwieckz avatar Feb 28 '22 21:02 illwieckz

/sv_master [tab] is doing a command completion. The word cvar is there to distinguish it from other types of commands.

In the event of /<cvar name> it's assumed that the user is intentionally running a cvar command so there is no need to indicate that.

slipher avatar Mar 09 '22 19:03 slipher

The cvar prefix was not really a concern, it was more about cvar value not being printed (assumed to be fixed by #594).

But this also reveals different code is used for those two things, while may be we can refactor this?

illwieckz avatar Mar 09 '22 22:03 illwieckz