From fa3208e33e02ee6673622bbb2c9e5ed6eff74ed6 Mon Sep 17 00:00:00 2001 From: Maieul BOYER Date: Thu, 18 Jul 2024 13:46:59 +0200 Subject: [PATCH] fixed prompt len function --- line/src/line_editing.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/line/src/line_editing.c b/line/src/line_editing.c index b29dd160..f2e3af51 100644 --- a/line/src/line_editing.c +++ b/line/src/line_editing.c @@ -6,7 +6,7 @@ /* By: maiboyer +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/07/11 18:21:45 by maiboyer #+# #+# */ -/* Updated: 2024/07/18 13:33:31 by maiboyer ### ########.fr */ +/* Updated: 2024/07/18 13:46:22 by maiboyer ### ########.fr */ /* */ /* ************************************************************************** */ @@ -77,6 +77,5 @@ void line_refresh(t_line_state *state, t_line_flags flags) me_printf_str(&str, "%s%s\x1b[0G\x1b[%uC", state->prompt, state->buf.buf, state->pos + line_get_prompt_len(state->prompt)); me_printf_fd(state->output_fd, "%s", str.buf); - //me_eprintf("prompt = %u | pos = %u",line_get_prompt_len(state->prompt) , state->pos); string_free(str); }