summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index bbbc92f..cf60fa2 100644
--- a/src/main.c
+++ b/src/main.c
@@ -24,7 +24,6 @@ int
char c;
char *arg;
uint8_t i;
- int ret;
i = 0;
arg = NULL;
@@ -44,11 +43,16 @@ int
if (c == '\n')
break ;
arg[i] = c;
+ if (!ft_strncmp("", arg, 4))
+ {
+ arg = ft_get_last_line();
+ break ;
+ }
i++;
}
arg[i] = '\0';
ft_history(arg);
- ret = ft_process_arg(arg);
+ ft_process_arg(arg);
}
free(arg);
arg = NULL;