word on new line if it's too long anyway. Fixes a hang.
+2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
+ word on new line if it's too long anyway. Fixes a hang.
+
2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
* include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
if (line_width > max_width && last_space > line_start)
ptr = last_space;
else if (line_width > max_width
- && line_start == str && startwidth != 0)
+ && line_start == str && line_width - lastspacewidth < max_width - 5)
{
ptr = str;
lastspacewidth = startwidth;