diff options
author | Oskar <[email protected]> | 2023-12-23 19:22:23 +0100 |
---|---|---|
committer | Oskar <[email protected]> | 2023-12-23 19:22:23 +0100 |
commit | 03f53f231f0708b9f9f74302554a5d7d982aaa21 (patch) | |
tree | 10d8a8970c6db44f08d54e191f29cabaf60b9736 /startmode.c | |
parent | 87a820faf9df7029c096f3183554159e11243989 (diff) |
New delete line feature. Lost of fixes too
Diffstat (limited to 'startmode.c')
-rw-r--r-- | startmode.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/startmode.c b/startmode.c index 5df9032..7bd5049 100644 --- a/startmode.c +++ b/startmode.c @@ -109,7 +109,6 @@ int startmode(char filename[]) { return EXIT_FAILURE; } fprintf(stdout, "%s", line); - //printf("%ld", start); free(line); break; @@ -189,7 +188,7 @@ int startmode(char filename[]) { return 1; } int increment = 0; - if (focus == 1) { // if we are at line 1 then increment becomes 1 + if (focus == 1) { // checks if its line 1. This is so that we can remove the newline properly. increment++; } int rlc = remove_line_contents(filename, focus); |