about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/kilo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kilo.c b/src/kilo.c
index 9521193..39b0489 100644
--- a/src/kilo.c
+++ b/src/kilo.c
@@ -441,7 +441,7 @@ static void editorDelRow(int at) {
     row = E.row+at;
     editorFreeRow(row);
     memmove(E.row+at,E.row+at+1,sizeof(E.row[0])*(E.numrows-at-1));
-    for (int j = at; j < E.numrows-1; j++) E.row[j].idx++;
+    for (int j = at; j < E.numrows-1; j++) E.row[j].idx--;
     E.numrows--;
     E.dirty++;
 }