console.c (Con_TabComplete): check for key_tabpartial[0] instead of strlen(key_tabpartial).

git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@57 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
sezero 2010-02-19 09:15:23 +00:00
parent 3766cbbb92
commit d5446a5a81

View file

@ -834,7 +834,7 @@ void Con_TabComplete (void)
return;
// get partial string (space -> cursor)
if (!Q_strlen(key_tabpartial)) //first time through, find new insert point. (Otherwise, use previous.)
if (!key_tabpartial[0]) //first time through, find new insert point. (Otherwise, use previous.)
{
//work back from cursor until you find a space, quote, semicolon, or prompt
c = key_lines[edit_line] + key_linepos - 1; //start one space left of cursor
@ -856,7 +856,7 @@ void Con_TabComplete (void)
// find a match
mark = Hunk_LowMark();
if (!Q_strlen(key_tabpartial)) //first time through
if (!key_tabpartial[0]) //first time through
{
Q_strcpy (key_tabpartial, partial);
BuildTabList (key_tabpartial);