From 670a7d99911d0663c5db663ed74019dbbb12a498 Mon Sep 17 00:00:00 2001 From: tma Date: Sun, 22 Jan 2006 01:58:50 +0000 Subject: * 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 git-svn-id: svn://svn.icculus.org/quake3/trunk@514 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/client/cl_keys.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'code/client') diff --git a/code/client/cl_keys.c b/code/client/cl_keys.c index a23b4ee..889ca82 100644 --- a/code/client/cl_keys.c +++ b/code/client/cl_keys.c @@ -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; } -- cgit v1.2.3