Fix compile error when readline not available
This commit is contained in:
parent
e9eeb3300c
commit
a31f0f503d
1 changed files with 2 additions and 0 deletions
|
|
@ -165,10 +165,12 @@ static char** cli_completion( const char * text , int start, int end)
|
|||
char **matches;
|
||||
matches = (char **)NULL;
|
||||
|
||||
#ifdef HAVE_READLINE
|
||||
if (start == 0)
|
||||
matches = rl_completion_matches ((char*)text, &my_generator);
|
||||
else
|
||||
rl_bind_key('\t',rl_abort);
|
||||
#endif
|
||||
|
||||
return (matches);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue