diff options
Diffstat (limited to 'startmode.c')
-rw-r--r-- | startmode.c | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/startmode.c b/startmode.c index 3b4179b..de89743 100644 --- a/startmode.c +++ b/startmode.c @@ -6,6 +6,7 @@ #include "7ed.h" #include "input.h" #include "i_validation.h" +#include "process_multiples.h" #include <stdint.h> int ncat(char filename[]) { @@ -106,8 +107,27 @@ int startmode(char filename[]) { call_singles(single, focus, filename); break; case _MULTIPLE: - fprintf(stdout, "multiple\n"); - fprintf(stdout, "%s", multiple); + //fprintf(stdout, "multiple\n"); + //fprintf(stdout, "%s", multiple); + switch(multiple[0]) { + case 'l': + case 'L': + focus = call_L(multiple, focus); + break; + case 'n': + case 'N': + call_N(multiple); + break; + case 'x': + case 'X': + call_X(multiple); + break; + case 'd': + case 'D': + call_D(multiple); + break; + } + free(multiple); break; case _FAIL: |