1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-30 08:36:44 +02:00

fix buggy path autocomplete behaviour

This commit is contained in:
Jfreegman
2014-07-28 01:33:12 -04:00
parent b18a67d656
commit 94a8ce5aa8
3 changed files with 15 additions and 19 deletions

View File

@ -33,11 +33,10 @@
Returns the difference between the old len and new len of line on success, -1 if error */
int complete_line(ToxWindow *self, const void *list, int n_items, int size);
/* matches /sendfile "<incomplete-dir>" line to matching directories.
/* attempts to match /sendfile "<incomplete-dir>" line to matching directories.
if only one match, auto-complete line.
return diff between old len and new len of ctx->line, or -1 if no matches
*/
if only one match, auto-complete line.
return diff between old len and new len of ctx->line, -1 if no matches or > 1 match */
int dir_match(ToxWindow *self, Tox *m, const wchar_t *line);
#endif /* #define _autocomplete_h */