diff options
author | Oskar <[email protected]> | 2023-12-13 22:51:32 +0100 |
---|---|---|
committer | Oskar <[email protected]> | 2023-12-13 22:51:32 +0100 |
commit | 84b2e02080b5fded466e18694426d7d26db8e194 (patch) | |
tree | ebc7387760175f8d8b6615ebeda0ab4f6b4eeb95 /startmode.c | |
parent | 754f7875bec4bf60d7bb8c23a588c32de255d038 (diff) |
fixed bug where newline was not created because the file did not end with one
Diffstat (limited to 'startmode.c')
-rw-r--r-- | startmode.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |