This commit is contained in:
parent
ebb85a3d0d
commit
c53ea70cbd
3 changed files with 10 additions and 6 deletions
|
|
@ -6,14 +6,14 @@
|
|||
# By: wescande <wescande@student.42.fr> +#+ +:+ +#+ #
|
||||
# +#+#+#+#+#+ +#+ #
|
||||
# Created: 2016/08/29 21:32:58 by wescande #+# #+# #
|
||||
# Updated: 2017/03/22 14:59:33 by gwojda ### ########.fr #
|
||||
# Updated: 2017/03/22 23:54:16 by gwojda ### ########.fr #
|
||||
# #
|
||||
# **************************************************************************** #
|
||||
|
||||
NAME = 42sh
|
||||
|
||||
CC = gcc
|
||||
FLAGS = -Wall -Wextra -Werror -fvisibility=hidden -fsanitize=address
|
||||
FLAGS = -Wall -Wextra -Werror #-fvisibility=hidden -fsanitize=address
|
||||
D_FLAGS = -g
|
||||
|
||||
DELTA = $$(echo "$$(tput cols)-47"|bc)
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
/* By: gwojda <gwojda@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2017/03/08 17:20:01 by gwojda #+# #+# */
|
||||
/* Updated: 2017/03/22 14:51:44 by gwojda ### ########.fr */
|
||||
/* Updated: 2017/03/23 00:06:08 by gwojda ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -76,7 +76,7 @@ static int c_check_glob(char **ss_glob, char *current_word,
|
|||
str = data_singleton()->line.input;
|
||||
free(current_word);
|
||||
free(glob_echap);
|
||||
if (!*ss_glob || !**ss_glob ||
|
||||
if (!ss_glob || !*ss_glob || !**ss_glob ||
|
||||
!ft_strncmp(str + pos, *ss_glob, ft_strlen(*ss_glob)))
|
||||
{
|
||||
ft_sstrfree(ss_glob);
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
/* By: gwojda <gwojda@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2016/12/19 12:45:06 by gwojda #+# #+# */
|
||||
/* Updated: 2017/03/22 23:19:57 by gwojda ### ########.fr */
|
||||
/* Updated: 2017/03/22 23:53:57 by gwojda ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -31,7 +31,11 @@ int ft_x(char **str, size_t *pos)
|
|||
return (0);
|
||||
else if (ret == FLECHE_DROITE && !underline_right(str, pos, pos_ref))
|
||||
return (0);
|
||||
else
|
||||
else if (ret == TOUCHE_HOME)
|
||||
underline_home(str, pos, pos_ref);
|
||||
else if (ret == TOUCHE_END)
|
||||
underline_end(str, pos, pos_ref);
|
||||
else if (ret != FLECHE_DROITE && ret != FLECHE_GAUCHE)
|
||||
break ;
|
||||
}
|
||||
if (data_singleton()->line.copy_tmp && *data_singleton()->line.copy_tmp)
|
||||
|
|
|
|||
Loading…
Reference in a new issue