Skip to content

Commit 0210495

Browse files
committed
fix a bug in kilo
Submitted upstream at antirez/kilo#81.
1 parent a8dfea1 commit 0210495

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/kilo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ static void editorDelRow(int at) {
441441
row = E.row+at;
442442
editorFreeRow(row);
443443
memmove(E.row+at,E.row+at+1,sizeof(E.row[0])*(E.numrows-at-1));
444-
for (int j = at; j < E.numrows-1; j++) E.row[j].idx++;
444+
for (int j = at; j < E.numrows-1; j++) E.row[j].idx--;
445445
E.numrows--;
446446
E.dirty++;
447447
}

0 commit comments

Comments
 (0)