mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-25 07:01:09 +00:00
apply previous fix to old-style cli entries as well.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47608 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1662,7 +1662,7 @@ static char *__ast_cli_generator(const char *text, const char *word, int state,
|
||||
* Run the generator if one is available. In any case we are done.
|
||||
*/
|
||||
if (e->generator)
|
||||
ret = e->generator(matchstr, word, argindex, state);
|
||||
ret = e->generator(matchstr, word, argindex, state - matchnum);
|
||||
else if (e->command) { /* new style command */
|
||||
/* prepare fake arguments for the generator.
|
||||
* argv[-1] is the cli entry we use,
|
||||
|
Reference in New Issue
Block a user