# HG changeset patch # User Matti Hamalainen # Date 1337992989 -10800 # Node ID 73ff0a592b2f51d59d6d567bdc38b41c9db3b7ab # Parent 2d650408f5de432e9c26e2827cfb7844766ad7d6 Remove some debug cruft from tab completion code. diff -r 2d650408f5de -r 73ff0a592b2f main.c --- a/main.c Sat May 26 03:42:32 2012 +0300 +++ b/main.c Sat May 26 03:43:09 2012 +0300 @@ -1396,11 +1396,7 @@ newPattern = TRUE; } else - { - if (optDebug) - printMsg(currWin, "no mode\n"); return FALSE; - } // Check if this is a command completion isCommand = (str[0] == '/' && startPos == 0); @@ -1409,11 +1405,7 @@ { endPos--; if (startPos > 0) - { - if (optDebug) - printMsg(currWin, "str[endPos] == optNickSep && startPos > 0 (%d)\n", startPos); return FALSE; - } hasSeparator = TRUE; } @@ -1437,16 +1429,6 @@ } } - if (optDebug) - { - printMsg(currWin, "sPos=%d, ePos=%d <-> bPos=%d, bufLen=%d : pat='%s' (again=%s, hassep=%s, hasspc=%s, newpat=%s, mode=%d)\n", - startPos, endPos, buf->pos, buf->len, pattern, - again ? "yes" : "no", - hasSeparator ? "yes" : "no", - hasSpace ? "yes" : "no", - newPattern ? "yes" : "no", mode); - } - if (!pattern) return FALSE;