mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-23 06:03:04 +01:00
small fix
This commit is contained in:
parent
f67725f636
commit
9c2551b3b9
@ -299,6 +299,9 @@ int complete_line(wchar_t *buf, size_t *pos, size_t *len, const uint8_t *list, i
|
|||||||
n_endchrs = 2;
|
n_endchrs = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (string_is_empty(sub))
|
||||||
|
return -1;
|
||||||
|
|
||||||
int s_len = strlen(sub);
|
int s_len = strlen(sub);
|
||||||
const uint8_t *match;
|
const uint8_t *match;
|
||||||
bool is_match = false;
|
bool is_match = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user