need to do some debugging
This commit is contained in:
2
Makefile
2
Makefile
@@ -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
|
||||||
|
|||||||
2
main.c
2
main.c
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user