mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-22 22:23:03 +01:00
Fix tab complete bug
If a directory contains a single entry tab complete will no longer fail
This commit is contained in:
parent
0434ac186a
commit
39e4ff8bd6
@ -147,7 +147,7 @@ static int complete_line_helper(ToxWindow *self, const char **list, const size_t
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!sub[0]) {
|
if (!sub[0] && !(dir_search && n_items == 1)) {
|
||||||
free(sub);
|
free(sub);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user