2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>

* normal/cmdline.c (grub_cmdline_get): Fix gabled line after
	completition in the middle of string.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-03-06 17:48:15 +01:00
parent 33e2e6f373
commit 696fd607c6
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
* normal/cmdline.c (grub_cmdline_get): Fix gabled line after
completition in the middle of string.
2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
* util/grub-mkrescue.in: Use mktemp with explicit template.

View file

@ -303,8 +303,9 @@ grub_cmdline_get (const char *prompt)
grub_memmove (buf + lpos, str, len * sizeof (grub_uint32_t));
llen += len;
cl_set_pos_all ();
cl_print_all (lpos, 0);
lpos += len;
cl_print_all (lpos - len, 0);
cl_set_pos_all ();
}
}
@ -473,7 +474,6 @@ grub_cmdline_get (const char *prompt)
if (t != 1)
cl_insert (insert);
lpos++;
cl_set_pos_all ();
}
else
{
@ -485,6 +485,7 @@ grub_cmdline_get (const char *prompt)
grub_free (insertu8);
grub_free (insert);
}
cl_set_pos_all ();
}
break;