mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-22 15:22:39 +00:00
* 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:
1 parent
258c2573a6
commit
fb55c3acf9
2 files changed
+14
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user