close prompt mal place
This commit is contained in:
parent
6d742b1235
commit
f3aa0ec096
1 changed files with 1 additions and 1 deletions
|
|
@ -19,7 +19,6 @@ static int promt_git_status(int fd)
|
||||||
char *line;
|
char *line;
|
||||||
|
|
||||||
get_next_line(fd, &line);
|
get_next_line(fd, &line);
|
||||||
close(fd);
|
|
||||||
tmp = line;
|
tmp = line;
|
||||||
if (ft_strrchr(line, '/'))
|
if (ft_strrchr(line, '/'))
|
||||||
line = ft_strdup(ft_strrchr(line, '/') + 1);
|
line = ft_strdup(ft_strrchr(line, '/') + 1);
|
||||||
|
|
@ -36,6 +35,7 @@ static int promt_git_status(int fd)
|
||||||
ft_strdel(&tmp);
|
ft_strdel(&tmp);
|
||||||
while (get_next_line(fd, &tmp) > 0)
|
while (get_next_line(fd, &tmp) > 0)
|
||||||
ft_strdel(&tmp);
|
ft_strdel(&tmp);
|
||||||
|
close(fd);
|
||||||
ft_strdel(&tmp);
|
ft_strdel(&tmp);
|
||||||
return (len + 8);
|
return (len + 8);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue