tabs tricks

This commit is contained in:
william 2017-03-19 00:25:00 +01:00
parent 227b638fad
commit 84fd17231a

View file

@ -53,8 +53,8 @@ static int match_bracket(t_glob *gl, char c)
}
neg = 0;
if ((*cmp == '^' || *cmp == '!')
&& !is_char_esc(gl->esc, ((char **)gl->m_pat->content)[0], cmp)
&& ++neg)
&& !is_char_esc(gl->esc, ((char **)gl->m_pat->content)[0], cmp)
&& ++neg)
++cmp;
while (cmp < gl->pat)
{
@ -72,10 +72,10 @@ static int match_star(t_glob *gl, char *str, char *full_word)
char *pat;
if (gl->pat[1] == '*' &&
!is_char_esc(gl->esc, ((char **)gl->m_pat->content)[0], gl->pat + 1))
!is_char_esc(gl->esc, ((char **)gl->m_pat->content)[0], gl->pat + 1))
{
while (gl->pat[1] == '*')
++gl->pat;
while (gl->pat[1] == '*')
++gl->pat;
dir_research(gl, full_word, gl->pat, (int[]){1, 0});
}
if (!*gl->pat || (*gl->pat == '*' && !*++gl->pat))