1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-06-29 13:17:46 +02:00

Fix tab complete bug

If a directory contains a single entry tab complete will no longer fail
This commit is contained in:
jfreegman 2020-11-25 15:35:47 -05:00
parent 0434ac186a
commit 39e4ff8bd6
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63

View File

@ -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);
return 0;
}