mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-25 08:39:28 +00:00
* grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
to avoid losing last column.
This commit is contained in:
1 parent
a73b31ce5c
commit
c8d6cc3cf0
2 files changed
+7
-2
No files matched your search
@@ -1,3 +1,8 @@
|
|||||||
|
2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
|
||||||
|
to avoid losing last column.
|
||||||
|
|
||||||
2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
|
2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* po/exclude.pot: Add missing string "%C".
|
* po/exclude.pot: Add missing string "%C".
|
||||||
|
|||||||
@@ -237,9 +237,9 @@ grub_cmdline_get (const char *prompt_translated)
|
|||||||
|
|
||||||
void cl_set_pos (struct cmdline_term *cl_term)
|
void cl_set_pos (struct cmdline_term *cl_term)
|
||||||
{
|
{
|
||||||
cl_term->xpos = (cl_term->prompt_len + lpos) % (cl_term->width - 1);
|
cl_term->xpos = (cl_term->prompt_len + lpos) % cl_term->width;
|
||||||
cl_term->ypos = cl_term->ystart
|
cl_term->ypos = cl_term->ystart
|
||||||
+ (cl_term->prompt_len + lpos) / (cl_term->width - 1);
|
+ (cl_term->prompt_len + lpos) / cl_term->width;
|
||||||
grub_term_gotoxy (cl_term->term, cl_term->xpos, cl_term->ypos);
|
grub_term_gotoxy (cl_term->term, cl_term->xpos, cl_term->ypos);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user