mirror of
https://github.com/javalsai/lidm.git
synced 2026-02-27 20:10:44 +01:00
feat|perf: generic&efficient desktop&config parser
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user