Commit 48100e84 authored by Marek Vavruša's avatar Marek Vavruša

client: fixed minor linter problems

parent 4fa44d12
......@@ -273,14 +273,14 @@ static unsigned char complete(EditLine * el, int ch)
//Get position of last dot in current line (useful for parsing table).
char *dot = strrchr(argv[0], '.');
if (strncmp(type, "table", 5) && !dot) {
if (strncmp(type, "table", 5) != 0 && !dot) {
//Line is not a name of some table and there is no dot in it.
complete_globals(el, argv[0], pos);
} else if ((dot && !strncmp(type, "nil", 3))
|| !strncmp(type, "table", 5)) {
} else if ((dot && strncmp(type, "nil", 3) == 0)
|| strncmp(type, "table", 5) == 0) {
//Current line (or part of it) is a name of some table.
complete_members(el, argv[0], type, pos, dot);
} else if (!strncmp(type, "function", 8)) {
} else if (strncmp(type, "function", 8) == 0) {
//Current line is a function.
complete_function(el);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment