diff options
author | Oskar <[email protected]> | 2024-04-01 16:07:37 +0200 |
---|---|---|
committer | Oskar <[email protected]> | 2024-04-01 16:07:37 +0200 |
commit | 3fbbbfbfceff0344d6f78c68cfcf11193557be76 (patch) | |
tree | 360f28047e33ffbbc478e59e72e3519763cede73 /startmode.c | |
parent | 2a61dc3144dcbf3b281a68ffdcaa177f4ccee349 (diff) |
More changes to functions. New arguments for call_L
Diffstat (limited to 'startmode.c')
-rw-r--r-- | startmode.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/startmode.c b/startmode.c index de89743..3d31aa5 100644 --- a/startmode.c +++ b/startmode.c @@ -90,6 +90,7 @@ int call_singles(char single, uint64_t focus, char *filename) { int startmode(char filename[]) { // The entry to the program. Count lines and display the count. Also show which file is being edited. + uint64_t Flines; int dnl = display_name_linecount(filename); if (dnl == 1) { return EXIT_FAILURE; @@ -99,7 +100,10 @@ int startmode(char filename[]) { while (1) { char *multiple; char single; - int smode_input_ret = smode_input(&single, &multiple, focus); + int clif = count_lines_in_file(filename, Flines); + if (clif == ) + + int smode_input_ret = smode_input(&single, &multiple, focus, Flines); switch (smode_input_ret) { |