+2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
+
+ Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
+ spotting it back in 2008. Shame on me for forgetting he did.
+
+ * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
+
2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
* include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
/* rescue_reader.c - rescue mode reader */
/*
* GRUB -- GRand Unified Bootloader
- * Copyright (C) 2009 Free Software Foundation, Inc.
+ * Copyright (C) 2009,2010 Free Software Foundation, Inc.
*
* GRUB is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
grub_errno = GRUB_ERR_NONE;
grub_rescue_read_line (&line, 0);
- if (! line)
+ if (! line || line[0] == '\0')
continue;
grub_parser_get_current ()->parse_line (line, grub_rescue_read_line);