[asterisk-commits] russell: branch 1.4 r47377 -
/branches/1.4/main/cli.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Thu Nov 9 09:28:15 MST 2006
Author: russell
Date: Thu Nov 9 10:28:15 2006
New Revision: 47377
URL: http://svn.digium.com/view/asterisk?view=rev&rev=47377
Log:
fix tab completion for "core debug channel" and "core no debug channel"
Modified:
branches/1.4/main/cli.c
Modified: branches/1.4/main/cli.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/cli.c?view=diff&rev=47377&r1=47376&r2=47377
==============================================================================
--- branches/1.4/main/cli.c (original)
+++ branches/1.4/main/cli.c Thu Nov 9 10:28:15 2006
@@ -956,6 +956,11 @@
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);
@@ -1132,11 +1137,11 @@
{ { "core", "debug", "channel", NULL },
handle_debugchan, "Enable debugging on a channel",
- debugchan_help, complete_ch_3, &cli_debug_channel_deprecated },
+ debugchan_help, complete_ch_4, &cli_debug_channel_deprecated },
{ { "core", "no", "debug", "channel", NULL },
handle_nodebugchan, "Disable debugging on a channel",
- nodebugchan_help, complete_ch_3, &cli_no_debug_channel_deprecated },
+ nodebugchan_help, complete_ch_5, &cli_no_debug_channel_deprecated },
{ { "core", "set", "debug", NULL },
handle_debug, "Set level of debug chattiness",
More information about the asterisk-commits
mailing list