From d5446a5a8197990a725134a1d54ebca2832fa06d Mon Sep 17 00:00:00 2001 From: sezero Date: Fri, 19 Feb 2010 09:15:23 +0000 Subject: [PATCH] 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 --- Quake/console.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Quake/console.c b/Quake/console.c index e5db608a..5948f33e 100644 --- a/Quake/console.c +++ b/Quake/console.c @@ -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);