1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-22 21:03:02 +01:00

Make tab completion case sensitive

This commit is contained in:
jfreegman 2021-12-04 16:34:15 -05:00
parent 27e20d6f44
commit 7b734f3996
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63

View File

@ -164,7 +164,7 @@ static int complete_line_helper(ToxWindow *self, const char **list, const size_t
/* put all list matches in matches array */ /* put all list matches in matches array */
for (size_t i = 0; i < n_items; ++i) { for (size_t i = 0; i < n_items; ++i) {
if (strncasecmp(list[i], sub, s_len) == 0) { if (strncmp(list[i], sub, s_len) == 0) {
snprintf(matches[n_matches++], MAX_STR_SIZE, "%s", list[i]); snprintf(matches[n_matches++], MAX_STR_SIZE, "%s", list[i]);
} }
} }