summaryrefslogtreecommitdiff
path: root/startmode.c
diff options
context:
space:
mode:
authoroskar <[email protected]>2024-03-03 18:24:49 +0100
committeroskar <[email protected]>2024-03-03 18:24:49 +0100
commit6cc1b17b3b336e1212febc13ef6c4a75cb69bb2a (patch)
treeb27a782b2e370d0f0732eb035e3f06761368bc3a /startmode.c
parentfc966f297cc163254220c930a565484abde207d9 (diff)
validating L is done
Diffstat (limited to 'startmode.c')
-rw-r--r--startmode.c2
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) {