shm: move ‘size’ to the private buffer struct

This commit is contained in:
Daniel Eklöf 2021-07-15 22:30:08 +02:00
parent f5da62c462
commit 99ea47c97a
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 18 additions and 18 deletions

View file

@ -2162,7 +2162,7 @@ reapply_old_damage(struct terminal *term, struct buffer *new, struct buffer *old
}
if (new->age > 1) {
memcpy(new->data, old->data, new->size);
memcpy(new->data, old->data, new->height * new->stride);
return;
}