mirror of https://mirror.osredm.com/root/redis.git
Update linenoise.
This commit is contained in:
parent
2091d73ef5
commit
5babacad9b
|
@ -598,7 +598,8 @@ static void refreshMultiLine(struct linenoiseState *l) {
|
||||||
/* Write the prompt and the current buffer content */
|
/* Write the prompt and the current buffer content */
|
||||||
abAppend(&ab,l->prompt,strlen(l->prompt));
|
abAppend(&ab,l->prompt,strlen(l->prompt));
|
||||||
if (maskmode == 1) {
|
if (maskmode == 1) {
|
||||||
for (uint i = 0; i < l->len; i++) abAppend(&ab,"*",1);
|
unsigned int i;
|
||||||
|
for (i = 0; i < l->len; i++) abAppend(&ab,"*",1);
|
||||||
} else {
|
} else {
|
||||||
abAppend(&ab,l->buf,l->len);
|
abAppend(&ab,l->buf,l->len);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue