Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
5babacad
Commit
5babacad
authored
Mar 12, 2020
by
antirez
Browse files
Update linenoise.
parent
2091d73e
Changes
1
Hide whitespace changes
Inline
Side-by-side
deps/linenoise/linenoise.c
View file @
5babacad
...
@@ -598,7 +598,8 @@ static void refreshMultiLine(struct linenoiseState *l) {
...
@@ -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
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment