diff options
author | Oskar <[email protected]> | 2024-04-01 17:16:00 +0200 |
---|---|---|
committer | Oskar <[email protected]> | 2024-04-01 17:16:00 +0200 |
commit | 10f241cce53c8a8da122728ec1577c1472149b85 (patch) | |
tree | 9efc29fbe28d15b7bde9cefd38cc1df945ec524a /startmode.c | |
parent | 3fbbbfbfceff0344d6f78c68cfcf11193557be76 (diff) |
L+ and L- seems to work now.
Diffstat (limited to 'startmode.c')
-rw-r--r-- | startmode.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/startmode.c b/startmode.c index 3d31aa5..f77611b 100644 --- a/startmode.c +++ b/startmode.c @@ -100,10 +100,12 @@ int startmode(char filename[]) { while (1) { char *multiple; char single; - int clif = count_lines_in_file(filename, Flines); - if (clif == ) + int clif = count_lines_in_file(filename, &Flines); + if (clif == 1) { + return EXIT_FAILURE; + } - int smode_input_ret = smode_input(&single, &multiple, focus, Flines); + int smode_input_ret = smode_input(&single, &multiple, focus); switch (smode_input_ret) { @@ -116,7 +118,7 @@ int startmode(char filename[]) { switch(multiple[0]) { case 'l': case 'L': - focus = call_L(multiple, focus); + focus = call_L(multiple, focus, Flines); break; case 'n': case 'N': |