diff options
-rw-r--r-- | process_multiples.c | 2 | ||||
-rw-r--r-- | process_multiples.h | 2 | ||||
-rw-r--r-- | startmode.c | 6 |
3 files changed, 7 insertions, 3 deletions
diff --git a/process_multiples.c b/process_multiples.c index dc950f2..78ed456 100644 --- a/process_multiples.c +++ b/process_multiples.c @@ -27,7 +27,7 @@ uint64_t call_L_plus_minus_only(uint64_t focus, char p_or_m) { return _NA; } -uint64_t call_L(char *multiple, uint64_t focus) { +uint64_t call_L(char *multiple, uint64_t focus, uint64_t Flines) { int imm = _IMM_NUMBER; diff --git a/process_multiples.h b/process_multiples.h index 9f78e4b..f509f5a 100644 --- a/process_multiples.h +++ b/process_multiples.h @@ -1,6 +1,6 @@ #include <stdint.h> -uint64_t call_L(char *multiple, uint64_t focus); +uint64_t call_L(char *multiple, uint64_t focus, uint64_t Flines); int call_N(char *multiple); int call_X(char *multiple); int call_D(char *multiple);
\ No newline at end of file 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) { |