* normal/completion.c (grub_normal_do_completion): When completing
arguments to "set" and the current word contains an equals sign, skip to after the equals sign before starting completion.
This commit is contained in:
parent
258c2573a6
commit
fb55c3acf9
2 changed files with 14 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2010-06-07 Colin Watson <cjwatson@ubuntu.com>
|
||||
|
||||
* normal/completion.c (grub_normal_do_completion): When completing
|
||||
arguments to "set" and the current word contains an equals sign,
|
||||
skip to after the equals sign before starting completion.
|
||||
|
||||
2010-06-07 Colin Watson <cjwatson@ubuntu.com>
|
||||
|
||||
* fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
|
||||
|
|
|
@ -414,6 +414,14 @@ grub_normal_do_completion (char *buf, int *restore,
|
|||
else
|
||||
current_word = argv[argc - 1];
|
||||
|
||||
if (argc > 1 && ! grub_strcmp (argv[0], "set"))
|
||||
{
|
||||
char *equals = grub_strchr (current_word, '=');
|
||||
if (equals)
|
||||
/* Complete the value of the variable. */
|
||||
current_word = equals + 1;
|
||||
}
|
||||
|
||||
/* Determine the state the command line is in, depending on the
|
||||
state, it can be determined how to complete. */
|
||||
cmdline_state = get_state (buf);
|
||||
|
|
Loading…
Reference in a new issue