From d994f9517785aeba4a07ec8c4aecf6d5d969ab97 Mon Sep 17 00:00:00 2001
From: dzwdz
Date: Fri, 15 Oct 2021 16:51:05 +0200
Subject: init/readline: stop reading on \n

---
 src/init/shell.c | 1 +
 1 file changed, 1 insertion(+)

(limited to 'src')

diff --git a/src/init/shell.c b/src/init/shell.c
index 130ae79..9510e0d 100644
--- a/src/init/shell.c
+++ b/src/init/shell.c
@@ -26,6 +26,7 @@ static int readline(char *buf, size_t max) {
 					pos--;
 				}
 				break;
+			case '\n':
 			case '\r':
 				printf("\n");
 				buf[pos++] = '\0';
-- 
cgit v1.2.3