summaryrefslogtreecommitdiff
path: root/src/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 5cdc22b..0b67c88 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -297,10 +297,6 @@ struct text_chunk *copy_region(struct buffer *buffer, struct region region) {
if (curr->allocated) {
free(curr->text);
- curr->text = NULL;
- curr->nbytes = curr->nchars = 0;
- curr->line = 0;
- curr->allocated = false;
}
struct text_chunk txt =