forked from test34/can_wizard
fix hint bug
This commit is contained in:
parent
c4da4bd248
commit
e059e129a9
1 changed files with 1 additions and 1 deletions
|
@ -520,7 +520,7 @@ void refreshShowHints(struct abuf *ab, struct linenoiseState *l, int plen) {
|
||||||
if (hintlen > hintmaxlen) hintlen = hintmaxlen;
|
if (hintlen > hintmaxlen) hintlen = hintmaxlen;
|
||||||
if (bold == 1 && color == -1) color = 37;
|
if (bold == 1 && color == -1) color = 37;
|
||||||
if (color != -1 || bold != 0)
|
if (color != -1 || bold != 0)
|
||||||
snprintf(seq,64,"\033[%d;%d;49m",bold,color);
|
snprintf(seq,64,"\033[%d;%dm",bold,color);
|
||||||
else
|
else
|
||||||
seq[0] = '\0';
|
seq[0] = '\0';
|
||||||
abAppend(ab,seq,strlen(seq));
|
abAppend(ab,seq,strlen(seq));
|
||||||
|
|
Loading…
Reference in a new issue