Update linenoise.

This commit is contained in:
antirez 2020-03-12 15:53:08 +01:00
parent c0c67c9be3
commit 916dd79f19

View File

@ -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);
} }