From 5e920c8c12a6f49691bbbe50984030621b5b4cbe Mon Sep 17 00:00:00 2001 From: salad Date: Mon, 2 Nov 2020 15:13:01 +0100 Subject: omw to sed-town --- src/m_loop.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/m_loop.c') diff --git a/src/m_loop.c b/src/m_loop.c index 27ebecd..181f384 100644 --- a/src/m_loop.c +++ b/src/m_loop.c @@ -137,9 +137,7 @@ unsigned char m_loop(int fd, t_msh *msh) msh->curr_hist_ptr = hist; while (gnl > 0) { - if (fd == STDIN_FILENO) - m_prompt_psx(1, msh); - gnl = get_next_line(fd, &line); + gnl = c_gnl(fd, &line, 1, msh); m_delete_comments(line); if (line[0] != C_NUL) { -- cgit v1.2.3