mirror of https://github.com/MidnightCommander/mc
(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:
parent
23ec140834
commit
f68b35b475
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue