Update linenoise.

This commit is contained in:
antirez 2020-03-12 15:53:08 +01:00
parent 2091d73ef5
commit 5babacad9b
1 changed files with 2 additions and 1 deletions

View File

@ -598,7 +598,8 @@ static void refreshMultiLine(struct linenoiseState *l) {
/* Write the prompt and the current buffer content */
abAppend(&ab,l->prompt,strlen(l->prompt));
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 {
abAppend(&ab,l->buf,l->len);
}