editor updates

This commit is contained in:
2020-02-13 00:28:34 +02:00
parent 5570eb3c9f
commit 5b3d894736
3 changed files with 29 additions and 15 deletions

4
erow.c
View File

@@ -92,7 +92,9 @@ erow_update(struct erow *row)
}
}
free(row->render);
if (row->rsize) {
free(row->render);
}
row->render = NULL;
row->render = malloc(row->size + (tabs * (TAB_STOP-1)) + (ctrl * 3) + 1);
assert(row->render != NULL);