mirror of
https://github.com/javalsai/lidm.git
synced 2025-09-03 11:48:00 +02:00
lint: fix code for clang-tidy
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user