fix: format and linter errors

This commit is contained in:
2025-07-16 19:04:58 +02:00
parent 4a1b868b8e
commit f1464751ae
5 changed files with 8 additions and 8 deletions

View File

@@ -106,12 +106,12 @@ size_t utf8len_until(const char* str, const char* until) {
size_t utf8trunc(char* str, size_t n) {
size_t bytes = 0;
while (true) {
if(str[bytes] == '\0') break;
if (str[bytes] == '\0') break;
if (utf8_iscont(str[bytes])) {
bytes++;
continue;
}
if(n == 0) {
if (n == 0) {
str[bytes] = '\0';
break;
}