From 3fbbbfbfceff0344d6f78c68cfcf11193557be76 Mon Sep 17 00:00:00 2001 From: Oskar Date: Mon, 1 Apr 2024 16:07:37 +0200 Subject: More changes to functions. New arguments for call_L --- startmode.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'startmode.c') 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) { -- cgit v1.2.3