2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>

* term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
	in premature implicit newline.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-01-10 22:35:46 +01:00
parent e9060a9d3b
commit ffa8e3d277
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
* term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
in premature implicit newline.
2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
* normal/cmdline.c (grub_cmdline_get): Fix off-by-one error

View file

@ -77,7 +77,7 @@ inc_y (void)
static void
inc_x (void)
{
if (grub_curr_x >= COLS - 2)
if (grub_curr_x >= COLS - 1)
inc_y ();
else
grub_curr_x++;