diff --git a/42sh/src/completion/c_find_abspath.c b/42sh/src/completion/c_find_abspath.c index 247beed9..0148eb76 100644 --- a/42sh/src/completion/c_find_abspath.c +++ b/42sh/src/completion/c_find_abspath.c @@ -6,7 +6,7 @@ /* By: gwojda +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2017/03/09 16:54:59 by gwojda #+# #+# */ -/* Updated: 2017/03/21 14:24:25 by gwojda ### ########.fr */ +/* Updated: 2017/03/21 14:47:18 by gwojda ### ########.fr */ /* */ /* ************************************************************************** */ diff --git a/42sh/src/completion/c_find_files.c b/42sh/src/completion/c_find_files.c index c326ded1..ce521d43 100644 --- a/42sh/src/completion/c_find_files.c +++ b/42sh/src/completion/c_find_files.c @@ -6,7 +6,7 @@ /* By: alao +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2017/01/09 13:31:21 by alao #+# #+# */ -/* Updated: 2017/03/21 14:37:27 by gwojda ### ########.fr */ +/* Updated: 2017/03/21 14:53:21 by gwojda ### ########.fr */ /* */ /* ************************************************************************** */ @@ -31,12 +31,12 @@ int c_exclusion_folder(t_comp *c) if ((rep = opendir(tmp)) && (!closedir(rep))) { tmp ? ft_memdel((void *)&tmp) : (0); - if (c->rcmd[ft_strlen(c->rcmd) - 1] == '/') + if (c->rcmd[ft_strlen(c->rcmd) - 1] == '/' + || c->rcmd[ft_strlen(c->rcmd) - 1] == '.') { c_clear(data_singleton()); return (0); } - DG("c->match = \"%s\"", c->match); tmp2 = ft_strjoin(c->match, "/"); c_updater(c, tmp2); tmp2 ? ft_memdel((void *)&tmp2) : (0); diff --git a/42sh/src/completion/c_parser.c b/42sh/src/completion/c_parser.c index 20c8912d..c59e1ad4 100644 --- a/42sh/src/completion/c_parser.c +++ b/42sh/src/completion/c_parser.c @@ -6,7 +6,7 @@ /* By: alao +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2017/01/09 13:52:07 by alao #+# #+# */ -/* Updated: 2017/03/16 10:29:15 by gwojda ### ########.fr */ +/* Updated: 2017/03/21 14:46:39 by gwojda ### ########.fr */ /* */ /* ************************************************************************** */