diff options
Diffstat (limited to 'startmode.c')
-rw-r--r-- | startmode.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) { |