2011-03-11 Michael Snyder <msnyder@vmware.com>

* cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
	* cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
	(lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
	* completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
	* top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
This commit is contained in:
Michael Snyder
2011-03-12 22:59:24 +00:00
parent 52bc799a91
commit 1427fe5e74
5 changed files with 16 additions and 8 deletions

View File

@@ -590,7 +590,7 @@ complete_line_internal (const char *text,
{
/* An empty line we want to consider ambiguous; that is, it
could be any command. */
c = (struct cmd_list_element *) -1;
c = CMD_LIST_AMBIGUOUS;
result_list = 0;
}
else
@@ -610,7 +610,7 @@ complete_line_internal (const char *text,
possible completions. */
list = NULL;
}
else if (c == (struct cmd_list_element *) -1)
else if (c == CMD_LIST_AMBIGUOUS)
{
char *q;