lint: fix code for clang-tidy

This commit is contained in:
2025-06-21 01:26:49 +02:00
parent 6d30e889d5
commit 938166366f
14 changed files with 167 additions and 154 deletions

View File

@@ -36,7 +36,7 @@ void efield_update(struct editable_field* self, char* update) {
if (*update == BACKSPACE_CODE) {
if (self->pos == 0) return;
char* curr = &self->content[self->pos];
char* prev = utf8back(curr);
char* prev = (char*)utf8back(curr);
memmove(prev, curr, strlen(self->content) - self->pos + 1);
self->pos -= curr - prev;