mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-14 05:33: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);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user