summaryrefslogtreecommitdiffstats
path: root/src/m_loop.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/m_loop.c')
-rw-r--r--src/m_loop.c3
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;
}
}