diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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; |