From 84b2e02080b5fded466e18694426d7d26db8e194 Mon Sep 17 00:00:00 2001 From: Oskar Date: Wed, 13 Dec 2023 22:51:32 +0100 Subject: fixed bug where newline was not created because the file did not end with one --- startmode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'startmode.c') diff --git a/startmode.c b/startmode.c index 1ecaa94..d9779ba 100644 --- a/startmode.c +++ b/startmode.c @@ -48,7 +48,7 @@ int startmode(char filename[]) { switch (command) { case 'L': case 'l': - uint64_t Lfocus; + uint64_t Lfocus = 0; char buf[1024]; int success; @@ -130,7 +130,7 @@ int startmode(char filename[]) { break; case 'n': case 'N': - + NEW_LINE(filename); break; -- cgit v1.2.3