Allow everything Unicode except noncharacters and control characters

Thanks mniip, see a113cbe.
This commit is contained in:
Tamás Bálint Misius 2020-03-12 09:48:53 +01:00
parent a113cbe57d
commit 21b9e1a645
No known key found for this signature in database
GPG Key ID: 5B472A12F6ECA9F2

View File

@ -263,7 +263,7 @@ bool Textbox::CharacterValid(int character)
return true; return true;
case All: case All:
default: default:
return character >= ' '; return character >= ' ' && character <= 0x10FFFF && !(character >= 0xD800 && character <= 0xDFFF) && !(character >= 0xFDD0 && character <= 0xFDEF) && !((character & 0xFFFF) >= 0xFFFE);
} }
return false; return false;
} }