2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
* normal/cmdline.c (grub_cmdline_get): Fix off-by-one error which resulted in garbled command line at the end of screen.
This commit is contained in:
parent
f0d0c0b726
commit
e9060a9d3b
2 changed files with 15 additions and 11 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
|
||||||
|
which resulted in garbled command line at the end of screen.
|
||||||
|
|
||||||
2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
|
2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
|
||||||
|
|
||||||
* loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
|
* loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
|
||||||
|
|
|
@ -254,21 +254,20 @@ grub_cmdline_get (const char *prompt)
|
||||||
|
|
||||||
for (p = buf + pos; p < buf + llen; p++)
|
for (p = buf + pos; p < buf + llen; p++)
|
||||||
{
|
{
|
||||||
if (cl_term->xpos++ > cl_term->width - 2)
|
|
||||||
{
|
|
||||||
grub_putcode ('\n', cl_term->term);
|
|
||||||
|
|
||||||
cl_term->xpos = 1;
|
|
||||||
if (cl_term->ypos == (unsigned) (cl_term->height))
|
|
||||||
cl_term->ystart--;
|
|
||||||
else
|
|
||||||
cl_term->ypos++;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (c)
|
if (c)
|
||||||
grub_putcode (c, cl_term->term);
|
grub_putcode (c, cl_term->term);
|
||||||
else
|
else
|
||||||
grub_putcode (*p, cl_term->term);
|
grub_putcode (*p, cl_term->term);
|
||||||
|
cl_term->xpos++;
|
||||||
|
if (cl_term->xpos >= cl_term->width - 1)
|
||||||
|
{
|
||||||
|
cl_term->xpos = 0;
|
||||||
|
if (cl_term->ypos >= (unsigned) (cl_term->height - 1))
|
||||||
|
cl_term->ystart--;
|
||||||
|
else
|
||||||
|
cl_term->ypos++;
|
||||||
|
grub_putcode ('\n', cl_term->term);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue