Changeset 4239 for trunk/console
- Timestamp:
- 09/30/05 16:03:13 (3 years ago)
- Location:
- trunk/console/src
- Files:
-
- 2 modified
-
console.cpp (modified) (3 diffs)
-
console_tab.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/console/src/console.cpp
r4212 r4239 1217 1217 } 1218 1218 1219 // If we haven't typed anything, why should we tab? 1219 1220 if (!nPos) 1220 1221 break; … … 1286 1287 1287 1288 if (sTabCompletion.vszPartialMatch.size() == 1) 1288 { // Only one match 1289 { 1290 // Only one match 1289 1291 // Check if there is a space in the match 1290 1292 if (strchr(szMatch, ' ') != NULL) … … 1304 1306 } 1305 1307 else 1306 { // Multiple matches 1308 { 1309 if (szMatch == 0) break; 1310 // Multiple matches 1307 1311 Beep(); 1308 1312 // Check if there is a space in the match -
trunk/console/src/console_tab.cpp
r4143 r4239 74 74 FOR_EACH_USER_CONTINUE 75 75 76 if ( strncasecmp(_szPartialMatch, pUser->GetAlias(), nLen) == 0)76 if (nLen == 0 || strncasecmp(_szPartialMatch, pUser->GetAlias(), nLen) == 0) 77 77 { 78 78 if (szMatch == 0) … … 93 93 FOR_EACH_USER_END 94 94 95 /* This is commented, so we get a list of every user if the user hits tab 96 and hasn't typed anything. This might suck... 95 97 if (nLen == 0) 96 98 _sTabCompletion.szPartialMatch = 0; 97 99 else 98 100 _sTabCompletion.szPartialMatch = szMatch; 101 */ 99 102 } 100 103 /* else // Sub command time
