From e059e129a92317d2b322f9fd218b63f50fba0449 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: Fri, 24 Nov 2023 14:54:56 +0300 Subject: [PATCH] fix hint bug --- components/console/linenoise/linenoise.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/console/linenoise/linenoise.c b/components/console/linenoise/linenoise.c index 90db2a7..4f4b23a 100644 --- a/components/console/linenoise/linenoise.c +++ b/components/console/linenoise/linenoise.c @@ -520,7 +520,7 @@ void refreshShowHints(struct abuf *ab, struct linenoiseState *l, int plen) { if (hintlen > hintmaxlen) hintlen = hintmaxlen; if (bold == 1 && color == -1) color = 37; if (color != -1 || bold != 0) - snprintf(seq,64,"\033[%d;%d;49m",bold,color); + snprintf(seq,64,"\033[%d;%dm",bold,color); else seq[0] = '\0'; abAppend(ab,seq,strlen(seq));