From bcd26d361ced0f235b8d41006f762159c6f85de2 Mon Sep 17 00:00:00 2001 From: SegFault42 Date: Fri, 26 Oct 2018 20:23:11 +0200 Subject: [PATCH] fix print \n twice --- nx/source/runtime/devices/console.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nx/source/runtime/devices/console.c b/nx/source/runtime/devices/console.c index 880ece88..f5993c74 100644 --- a/nx/source/runtime/devices/console.c +++ b/nx/source/runtime/devices/console.c @@ -625,7 +625,8 @@ void consolePrintChar(int c) { if(currentConsole->cursorX >= currentConsole->windowWidth) { currentConsole->cursorX = 0; - consoleNewRow(); + if (c != '\n') + consoleNewRow(); } switch(c) {