summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2006-11-09 16:30:06 +0000
committerRussell Bryant <russell@russellbryant.com>2006-11-09 16:30:06 +0000
commit7209032ffeb382478e1c95c72a926ab9cc3d1641 (patch)
treedbf72868609f7ea9db1bd8b48f852d409021656f
parentadf6bb1d9ac8b3690544ea9ee3a48b7a9451dfbc (diff)
Merged revisions 47377 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r47377 | russell | 2006-11-09 11:28:15 -0500 (Thu, 09 Nov 2006) | 2 lines fix tab completion for "core debug channel" and "core no debug channel" ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47378 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r--main/cli.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/main/cli.c b/main/cli.c
index fa6a78909..f5c13cfb2 100644
--- a/main/cli.c
+++ b/main/cli.c
@@ -855,6 +855,11 @@ static char *complete_ch_4(const char *line, const char *word, int pos, int stat
return ast_complete_channels(line, word, pos, state, 3);
}
+static char *complete_ch_5(const char *line, const char *word, int pos, int state)
+{
+ return ast_complete_channels(line, word, pos, state, 4);
+}
+
static char *complete_mod_3_nr(const char *line, const char *word, int pos, int state)
{
return ast_module_helper(line, word, pos, state, 2, 0);
@@ -986,11 +991,11 @@ static struct ast_cli_entry cli_cli[] = {
{ { "core", "debug", "channel", NULL },
handle_debugchan, "Enable debugging on a channel",
- debugchan_help, complete_ch_3 },
+ debugchan_help, complete_ch_4 },
{ { "core", "no", "debug", "channel", NULL },
handle_nodebugchan, "Disable debugging on a channel",
- nodebugchan_help, complete_ch_3 },
+ nodebugchan_help, complete_ch_5 },
{ { "core", "set", "debug", NULL },
handle_debug, "Set level of debug chattiness",