1
0
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:
Jari Vetoniemi 2014-04-12 19:59:58 +03:00
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) if (len + u8len >= bufSize)
return 0; return 0;
if (u8len == 1 && iscntrl(*rune)) if (u8len == 1 && !isprint(*rune))
return 0; return 0;
char *str = string + start; char *str = string + start;