mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 14:59:34 +00:00
Explicitly check that terminal is in visual UTF-8 before mirroring code
This commit is contained in:
1 parent
6f5568ed67
commit
bb7f4dbe3b
1 file changed
+3
-1
+3
-1
@@ -1136,7 +1136,9 @@ putglyph (const struct grub_unicode_glyph *c, struct grub_term_output *term)
|
|||||||
if (i == -1)
|
if (i == -1)
|
||||||
{
|
{
|
||||||
code = c->base;
|
code = c->base;
|
||||||
if (c->attributes & GRUB_UNICODE_GLYPH_ATTRIBUTE_MIRROR)
|
if ((term->flags & GRUB_TERM_CODE_TYPE_MASK)
|
||||||
|
== GRUB_TERM_CODE_TYPE_UTF8_VISUAL
|
||||||
|
&& (c->attributes & GRUB_UNICODE_GLYPH_ATTRIBUTE_MIRROR))
|
||||||
code = mirror_code (code);
|
code = mirror_code (code);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in new issue
Block a user