From fd8ce46060e1669aa966ab91eed621f156a87422 Mon Sep 17 00:00:00 2001 From: Huang Qi Date: Sat, 4 Mar 2023 09:32:02 +0800 Subject: [PATCH] system/cle: Don't echo extra '\n' Before: ``` NuttShell (NSH) NuttX-12.0.0 nsh> free /* Extra line here */ total used free largest nused nfree Umem: 33154512 33584 33120928 33120928 96 1 ``` After: ``` NuttShell (NSH) NuttX-12.0.0 nsh> free total used free largest nused nfree Umem: 33154512 33584 33120928 33120928 96 1 ``` Signed-off-by: Huang Qi --- system/cle/cle.c | 1 - 1 file changed, 1 deletion(-) diff --git a/system/cle/cle.c b/system/cle/cle.c index 993f9d92f..53e9be86e 100644 --- a/system/cle/cle.c +++ b/system/cle/cle.c @@ -1055,7 +1055,6 @@ static int cle_editloop(FAR struct cle_s *priv) priv->curpos = priv->nchars; cle_insertch(priv, '\n'); - cle_putch(priv, '\n'); return OK; } break;