fx: string: fix remove_ansi() not updating codepoints count
This commit is contained in:
+2
-1
@@ -513,7 +513,8 @@ static enum fx_status remove_ansi(
|
||||
memmove(removal_start, excess_src, excess_length);
|
||||
s[new_str_len] = '\0';
|
||||
|
||||
str->s_len = new_str_len;
|
||||
str->s_len -= length;
|
||||
str->s_codepoints -= length;
|
||||
|
||||
return FX_SUCCESS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user