From c4c59b2d423a5194a6ff07c9a1e82df0886923ec Mon Sep 17 00:00:00 2001 From: nytpu Date: Sat, 15 Jun 2024 14:35:05 -0600 Subject: [PATCH] fix some thigns --- src/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.c b/src/main.c index 2f1b08e..9bf3b50 100644 --- a/src/main.c +++ b/src/main.c @@ -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 -- 2.45.2