fx: string: fix remove_ansi() not updating codepoints count

This commit is contained in:
2026-06-20 15:23:26 +01:00
parent fcf44cc288
commit 9145e3bac7
+2 -1
View File
@@ -513,7 +513,8 @@ static enum fx_status remove_ansi(
memmove(removal_start, excess_src, excess_length); memmove(removal_start, excess_src, excess_length);
s[new_str_len] = '\0'; s[new_str_len] = '\0';
str->s_len = new_str_len; str->s_len -= length;
str->s_codepoints -= length;
return FX_SUCCESS; return FX_SUCCESS;
} }