mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-18 18:11:18 +00:00
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:
parent
3766cbbb92
commit
d5446a5a81
1 changed files with 2 additions and 2 deletions
|
@ -834,7 +834,7 @@ void Con_TabComplete (void)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// get partial string (space -> cursor)
|
// 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
|
//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
|
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
|
// find a match
|
||||||
mark = Hunk_LowMark();
|
mark = Hunk_LowMark();
|
||||||
if (!Q_strlen(key_tabpartial)) //first time through
|
if (!key_tabpartial[0]) //first time through
|
||||||
{
|
{
|
||||||
Q_strcpy (key_tabpartial, partial);
|
Q_strcpy (key_tabpartial, partial);
|
||||||
BuildTabList (key_tabpartial);
|
BuildTabList (key_tabpartial);
|
||||||
|
|
Loading…
Reference in a new issue