diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-12-02 17:43:31 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-12-02 17:43:31 +0100 |
commit | 19b0278050bc1bea5e99441c3081263d96279d64 (patch) | |
tree | f87e972ecb3f4302694eb27822b6062dc9c69c85 /src/m_loop.c | |
parent | pfFix (diff) | |
download | 42-minishell-19b0278050bc1bea5e99441c3081263d96279d64.tar.gz 42-minishell-19b0278050bc1bea5e99441c3081263d96279d64.tar.bz2 42-minishell-19b0278050bc1bea5e99441c3081263d96279d64.tar.xz 42-minishell-19b0278050bc1bea5e99441c3081263d96279d64.tar.zst 42-minishell-19b0278050bc1bea5e99441c3081263d96279d64.zip |
Very functionnal but extra unwanted step
Diffstat (limited to '')
-rw-r--r-- | src/m_loop.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/m_loop.c b/src/m_loop.c index a5e816d..b249935 100644 --- a/src/m_loop.c +++ b/src/m_loop.c @@ -25,6 +25,7 @@ #include "c_ctrls.h" #include "d_define.h" #include "e_line.h" +#include "m_argv.h" #include "m_loop_multis.h" #include "m_prompt.h" #include "p_lblock.h" @@ -100,6 +101,8 @@ static void m_handle_hist(char hist[], char line[], t_msh *msh) if (hist_i == 254) { m_dump_hist(hist, msh); + ft_memdel((void*)&msh->prev_hist); + msh->prev_hist = m_get_prev_hist(msh); hist_i = 0; } } |