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:
parent
0b5abe0251
commit
67f44c8687
5 changed files with 81 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue