more updates

This commit is contained in:
2020-02-12 17:11:32 -08:00
parent 5b3d894736
commit e55fef3a65
3 changed files with 68 additions and 10 deletions

1
erow.c
View File

@@ -129,7 +129,6 @@ erow_insert(int at, char *s, int len)
assert(editor->row != NULL);
if (at < editor->nrows) {
printf("%d, %d\n", at, editor->nrows);
memmove(&editor->row[at+1], &editor->row[at],
sizeof(struct erow) * (editor->nrows - at + 1));
}