mirror of
https://github.com/weechat/weechat.git
synced 2026-07-03 08:13:14 +02:00
core: count number of chars instead of bytes for suffix in function string_cut
This commit is contained in:
@@ -134,7 +134,7 @@ string_cut (const char *string, int length, int count_suffix, int screen,
|
||||
if (screen)
|
||||
length -= utf8_strlen_screen (cut_suffix);
|
||||
else
|
||||
length -= length_cut_suffix;
|
||||
length -= utf8_strlen (cut_suffix);
|
||||
if (length < 0)
|
||||
return strdup ("");
|
||||
if (screen)
|
||||
|
||||
Reference in New Issue
Block a user