diff --git a/42sh/src/line-editing/copy_cut_paste.c b/42sh/src/line-editing/copy_cut_paste.c index 97808ebc..bd137eb3 100644 --- a/42sh/src/line-editing/copy_cut_paste.c +++ b/42sh/src/line-editing/copy_cut_paste.c @@ -6,7 +6,7 @@ /* By: gwojda +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2016/12/19 12:45:06 by gwojda #+# #+# */ -/* Updated: 2017/03/17 10:45:37 by gwojda ### ########.fr */ +/* Updated: 2017/03/17 10:58:09 by gwojda ### ########.fr */ /* */ /* ************************************************************************** */ @@ -91,7 +91,7 @@ int ft_c(void) char **tmp; if (!STR) - return (1); + return (0); tmp = &data_singleton()->line.copy_tmp; if (*tmp) ft_strdel(tmp); diff --git a/42sh/src/line-editing/lib_line_editing/tool_line_2.c b/42sh/src/line-editing/lib_line_editing/tool_line_2.c index 18230793..07f7b1ed 100644 --- a/42sh/src/line-editing/lib_line_editing/tool_line_2.c +++ b/42sh/src/line-editing/lib_line_editing/tool_line_2.c @@ -6,7 +6,7 @@ /* By: gwojda +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2017/01/20 19:07:52 by gwojda #+# #+# */ -/* Updated: 2017/03/16 17:15:07 by gwojda ### ########.fr */ +/* Updated: 2017/03/17 10:58:40 by gwojda ### ########.fr */ /* */ /* ************************************************************************** */ @@ -53,7 +53,7 @@ int ft_printall(void) ret = 0; if (read(0, &ret, sizeof(int)) == -1 || ret != 126 || !STR) - return (1); + return (0); ft_clear_window(); ft_prompt(); pos_tmp = POS; @@ -68,7 +68,7 @@ int ft_printall(void) if (POS) ft_putnc('\b', POS - pos_tmp + 1); POS = pos_tmp; - return (1); + return (0); } void ft_get_beggin_with_curs(char *str, size_t *pos)