1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-30 12:46:45 +02:00

Fix autocomplete bug

Formatting was messed up due to not accounting for null byte in directory list
This commit is contained in:
jfreegman
2018-02-20 20:54:26 -05:00
parent b14d983a8c
commit 5cd196a769
2 changed files with 12 additions and 10 deletions

View File

@ -31,7 +31,7 @@
in the list, and size is the size of each item in the list.
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);
int complete_line(ToxWindow *self, const void *list, size_t n_items, size_t size);
/* attempts to match /command "<incomplete-dir>" line to matching directories.