Hi,

diff --git a/term/ieee1275/ofconsole.c b/term/ieee1275/ofconsole.c
index b449507..0d3ba46 100644
--- a/term/ieee1275/ofconsole.c
+++ b/term/ieee1275/ofconsole.c
@@ -84,7 +84,10 @@ grub_ofconsole_putchar (grub_uint32_t c)
     {
       grub_curr_x++;
       if (grub_curr_x > grub_ofconsole_width)
-       grub_putcode ('\n');
+        {
+          grub_putcode ('\n');
+          grub_curr_x++;
+        }
     }
   grub_ieee1275_write (stdout_ihandle, &chr, 1, 0);
 }

The reason for this patch is that after grub_putcode('\n'),
grub_curr_x will be reset to 0, we need to increment it again for the
current character.

-- 
Bean


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to