2005-08-28 Marco Gerards <metgerards@student.han.nl>

* include/grub/normal.h (enum grub_completion_type): Added
	`GRUB_COMPLETION_TYPE_ARGUMENT'.

	* normal/cmdline.c (print_completion): Handle
	the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
	* normal/menu_entry.c (store_completion): Likewise.

	* normal/completion.c (complete_arguments): New function.
	(grub_normal_do_completion): Call `complete_arguments' when the
	current words start with a dash.
This commit is contained in:
marco_g 2005-08-28 17:01:16 +00:00
parent 0b5abe0251
commit 67f44c8687
5 changed files with 81 additions and 1 deletions

View file

@ -840,6 +840,9 @@ store_completion (const char *item, grub_completion_type_t type, int count)
case GRUB_COMPLETION_TYPE_PARTITION:
what = "partitions";
break;
case GRUB_COMPLETION_TYPE_ARGUMENT:
what = "arguments";
break;
default:
what = "things";
break;