From 19b0278050bc1bea5e99441c3081263d96279d64 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Wed, 2 Dec 2020 17:43:31 +0100 Subject: Very functionnal but extra unwanted step --- src/m_loop.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/m_loop.c') 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; } } -- cgit v1.2.3