1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-08 18:53:12 +02:00

core: fix function string_cut when there are non printable chars in suffix

This commit is contained in:
Sébastien Helleu
2022-12-04 21:22:11 +01:00
parent f1cfd6f73f
commit ef842c5e62
2 changed files with 22 additions and 1 deletions
+1 -1
View File
@@ -134,7 +134,7 @@ string_cut (const char *string, int length, int count_suffix, int screen,
if (count_suffix)
{
if (screen)
length -= utf8_strlen_screen (cut_suffix);
length -= gui_chat_strlen_screen (cut_suffix);
else
length -= utf8_strlen (cut_suffix);
if (length < 0)