mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-14 16:33:34 +00:00
Fix command completion (bug #988)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2163 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
2
cli.c
2
cli.c
@@ -948,7 +948,7 @@ static char *__ast_cli_generator(char *text, char *word, int state, int lock)
|
|||||||
fullcmd = fullcmd1;
|
fullcmd = fullcmd1;
|
||||||
e1++;
|
e1++;
|
||||||
}
|
}
|
||||||
if ((fullcmd[0] != '_') && !strncasecmp(matchstr, fullcmd, strlen(matchstr))) {
|
if ((fullcmd[0] != '_') && !strncasecmp(text, fullcmd, strlen(text))) {
|
||||||
/* We contain the first part of one or more commands */
|
/* We contain the first part of one or more commands */
|
||||||
matchnum++;
|
matchnum++;
|
||||||
if (matchnum > state) {
|
if (matchnum > state) {
|
||||||
|
Reference in New Issue
Block a user