Updating a bunch of stuff.

This commit is contained in:
2020-02-11 22:47:57 -08:00
parent 4d7da30a41
commit 1e3258fcbd
2 changed files with 29 additions and 0 deletions

1
erow.c
View File

@@ -91,6 +91,7 @@ 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));
}