feat|perf: generic&efficient desktop&config parser

This commit is contained in:
2025-06-10 23:44:09 +02:00
parent d13ebfff4e
commit 22c3f7c896
10 changed files with 178 additions and 88 deletions

View File

@@ -50,8 +50,8 @@ void field_update(struct editable_field* self, char* update) {
}
if (self->pos < self->length) {
// move with immediate buffer
memmove(&self->content[self->pos + insert_len],
&self->content[self->pos], self->length - self->pos);
memmove(&self->content[self->pos + insert_len], &self->content[self->pos],
self->length - self->pos);
}
memcpy(&self->content[self->pos], update, insert_len);