mirror of
https://github.com/Cloudef/bemenu
synced 2024-11-23 17:32:11 +01:00
Discard unprintable single width characters instead.
This commit is contained in:
parent
57e76dda1c
commit
e738ae1772
@ -242,7 +242,7 @@ size_t _bmUtf8RuneInsert(char *string, size_t bufSize, size_t start, const char
|
||||
if (len + u8len >= bufSize)
|
||||
return 0;
|
||||
|
||||
if (u8len == 1 && iscntrl(*rune))
|
||||
if (u8len == 1 && !isprint(*rune))
|
||||
return 0;
|
||||
|
||||
char *str = string + start;
|
||||
|
Loading…
Reference in New Issue
Block a user