1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-12-26 02:09:24 +01:00

fixed multiline text fields not accepting newline characters (since aef6f7b)

This commit is contained in:
Ell 2023-06-21 00:07:26 +02:00
parent 7b9b177453
commit d81efe1d44

View file

@ -418,9 +418,6 @@ namespace MLEM.Input {
var result = new StringBuilder();
foreach (var codePoint in new CodePointSource(text)) {
var character = char.ConvertFromUtf32(codePoint);
// don't include control characters
if (character.Length == 1 && char.IsControl(character, 0))
continue;
if (this.InputRule(this, character)) {
result.Append(character);
} else if (!removeMismatching) {