From 73645ef92d3106a351cda3973a41e449c67daa5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BD=D0=B8=D0=BB=D0=B0=20=D0=93=D0=BE=D1=80?= =?UTF-8?q?=D0=BD=D1=83=D1=88=D0=BA=D0=BE?= Date: Thu, 23 Nov 2023 00:48:40 +0300 Subject: [PATCH] Multiplexing: fix refreshMultiLine(). for orig commit dbfe83b --- components/console/linenoise/linenoise.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/console/linenoise/linenoise.c b/components/console/linenoise/linenoise.c index 11acb4a..05d57c9 100644 --- a/components/console/linenoise/linenoise.c +++ b/components/console/linenoise/linenoise.c @@ -497,7 +497,9 @@ static void refreshMultiLine(struct linenoiseState *l, int flags) { snprintf(seq,64,"\r\x1b[0K\x1b[1A"); abAppend(&ab,seq,strlen(seq)); } + } + if (flags & REFRESH_ALL) { /* Clean the top line. */ snprintf(seq,64,"\r\x1b[0K"); abAppend(&ab,seq,strlen(seq));