Wide characters fix

This commit is contained in:
IgorTimofeev 2023-10-08 21:37:58 +03:00
parent cdbb421e7e
commit 52efbbcc81

View File

@ -83,7 +83,12 @@ local function byteFieldDraw(object)
textColor = colors.selectionBetweenText textColor = colors.selectionBetweenText
end end
screen.drawText(x, y, textColor, object.asChar and string.char(bytes[index]) or string.format("%02X", bytes[index])) if object.asChar then
local char = string.char(bytes[index])
screen.drawText(x, y, textColor, unicode.isWide(char) and "-" or char)
else
screen.drawText(x, y, textColor, string.format("%02X", bytes[index]))
end
else else
return object return object
end end