From f1808b39c66f387f47cc063c45f09b284c5a06e3 Mon Sep 17 00:00:00 2001 From: M600 Date: Thu, 16 Feb 2017 16:21:23 +0100 Subject: [PATCH] Fix shifting --- 42sh/src/completion/c_rematch.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/42sh/src/completion/c_rematch.c b/42sh/src/completion/c_rematch.c index e2885af4..d0aa9ded 100644 --- a/42sh/src/completion/c_rematch.c +++ b/42sh/src/completion/c_rematch.c @@ -6,7 +6,7 @@ /* By: alao +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2017/02/15 12:03:30 by alao #+# #+# */ -/* Updated: 2017/02/16 16:01:12 by alao ### ########.fr */ +/* Updated: 2017/02/16 16:21:02 by alao ### ########.fr */ /* */ /* ************************************************************************** */ @@ -51,24 +51,15 @@ int c_rematch(t_comp *c, long int keypress) if (ft_isascii(keypress)) { c_term_clear(c); - ft_putchar(keypress); + ft_print(keypress); c_refresh_match(c, keypress); c_clear_lst(c); c->lst = NULL; if (c_matching(data_singleton(), c)) - { -// if (c->lst) -// { -// ft_putstr(tgetstr("le", NULL)); -// ft_putstr(tgetstr("nd", NULL)); -// } return (1); - } if (c->lst == NULL) { - DG("Clear"); c_clear(data_singleton()); -// data_singleton()->line.pos += 1; return (1); } }