* Overhaul of console autocompletion
- No longer does weird stuff like move the cursor inappropriately - Autocomplete works with compound commands - Special autocomplete on some commands e.g. \map, \demo - Removed various hacks used to counter the original autocomplete code
This commit is contained in:
parent
893629fb0f
commit
c3f7915a8b
8 changed files with 340 additions and 103 deletions
|
@ -483,7 +483,7 @@ void Console_Key (int key) {
|
|||
|
||||
// enter finishes the line
|
||||
if ( key == K_ENTER || key == K_KP_ENTER ) {
|
||||
// if not in the game explicitly prepent a slash if needed
|
||||
// if not in the game explicitly prepend a slash if needed
|
||||
if ( cls.state != CA_ACTIVE && g_consoleField.buffer[0] != '\\'
|
||||
&& g_consoleField.buffer[0] != '/' ) {
|
||||
char temp[MAX_STRING_CHARS];
|
||||
|
@ -528,7 +528,7 @@ void Console_Key (int key) {
|
|||
// command completion
|
||||
|
||||
if (key == K_TAB) {
|
||||
Field_CompleteCommand(&g_consoleField);
|
||||
Field_AutoComplete(&g_consoleField);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue