From 6cc1b17b3b336e1212febc13ef6c4a75cb69bb2a Mon Sep 17 00:00:00 2001 From: oskar Date: Sun, 3 Mar 2024 18:24:49 +0100 Subject: validating L is done --- startmode.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'startmode.c') diff --git a/startmode.c b/startmode.c index 8f75069..0ad7155 100644 --- a/startmode.c +++ b/startmode.c @@ -35,6 +35,7 @@ int startmode(char filename[]) { fprintf(stdout,"%s %lu lines\n", filename, Flines); uint64_t focus = 1; // The focus variable. Which is the actual line number we have "selected" + while(1) { // The main loop to get the "UI" started firstwhile: @@ -48,6 +49,7 @@ int startmode(char filename[]) { if (command == '\n') { continue; } + while ('\n' != getchar()); switch (command) { -- cgit v1.2.3