Skip to content
Snippets Groups Projects
Commit a64257a8 authored by antirez's avatar antirez
Browse files

Hints: when only bold is set, use color 37 (white).

parent 24c52baa
No related branches found
No related tags found
No related merge requests found
......@@ -481,6 +481,7 @@ void refreshShowHints(struct abuf *ab, struct linenoiseState *l, int plen) {
int hintlen = strlen(hint);
int hintmaxlen = l->cols-(plen+l->len);
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);
abAppend(ab,seq,strlen(seq));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment