need to do some debugging

This commit is contained in:
Kyle Isom 2020-02-10 22:59:06 -08:00
parent 514953e20d
commit c0fe553ccc
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ BIN := ke
OBJS := main.o OBJS := main.o
LDFLAGS := LDFLAGS :=
CFLAGS := -pedantic -Wall -Werror -Wextra -O2 -std=c99 -g CFLAGS := -pedantic -Wall -Werror -Wextra -O0 -std=c99 -g
.PHONY: all .PHONY: all
all: build all: build

View File

@ -194,7 +194,7 @@ insert_row(int at, char *s, size_t len)
if (at < editor.nrows) { if (at < editor.nrows) {
memmove(&editor.row[at+1], &editor.row[at], memmove(&editor.row[at+1], &editor.row[at],
sizeof(erow) * (editor.rows - at)); sizeof(erow) * (editor.rows - at + 1));
} }
editor.row[at].size = len; editor.row[at].size = len;