(try_complete): fixed warinig:

input_complete.c:874:26:  warning: use of logical && with constant
operand; switch to  bitwise & or remove constant
[-Wconstant-logical-operand]
    if (q && q[1] == '(' && INPUT_COMPLETE_COMMANDS)
                         ^  ~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2011-08-29 13:46:32 +04:00 committed by Slava Zanko
parent 23ec140834
commit f68b35b475
1 changed files with 1 additions and 1 deletions

View File

@ -871,7 +871,7 @@ try_complete (char *text, int *lc_start, int *lc_end, input_complete_t flags)
q = strrchr (word, '$');
if (flags & INPUT_COMPLETE_HOSTNAMES)
r = strrchr (word, '@');
if (q && q[1] == '(' && INPUT_COMPLETE_COMMANDS)
if (q && q[1] == '(' && (flags & INPUT_COMPLETE_COMMANDS))
{
if (q > p)
p = str_get_next_char (q);