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
c54afb6d
Commit
c54afb6d
authored
Nov 29, 2010
by
Pieter Noordhuis
Browse files
Minor update to linenoise
parent
b2cc45bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
deps/linenoise/linenoise.c
View file @
c54afb6d
...
...
@@ -243,10 +243,14 @@ static int completeLine(int fd, const char *prompt, char *buf, size_t buflen, si
if
(
i
==
lc
.
len
)
beep
();
break
;
case
27
:
/* escape */
/* Re-show original buffer */
if
(
i
<
lc
.
len
)
{
refreshLine
(
fd
,
prompt
,
buf
,
*
len
,
*
pos
,
cols
);
}
stop
=
1
;
break
;
default:
/*
u
pdate buffer and return */
/*
U
pdate buffer and return */
if
(
i
<
lc
.
len
)
{
nwritten
=
snprintf
(
buf
,
buflen
,
"%s"
,
lc
.
cvec
[
i
]);
*
len
=
*
pos
=
nwritten
;
...
...
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