need to do some debugging
This commit is contained in:
parent
514953e20d
commit
c0fe553ccc
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue