1 files changed, 1 insertions(+), 0 deletions(-)
M src/main.c
M src/main.c => src/main.c +1 -0
@@ 60,6 60,7 @@ delLine(void)
if (lineSelected == 0 || lineSelected >= linesLen-1 || lines[lineSelected] == END) return;
for (size_t i = lineSelected; i < linesLen - 1; i++) lines[i] = lines[i + 1];
lines[linesLen - 1] = END;
+ if (lines[lineSelected] == END) lineSelected--;
}
void