Normalize end of line characters when get text from clipboard in SDL

This commit is contained in:
and3md 2018-02-03 19:40:08 +01:00
parent 31a342d700
commit e4606278f2
1 changed files with 1 additions and 1 deletions

View File

@ -1489,7 +1489,7 @@ class SDLPlatform : Platform {
return ""d;
string s = fromStringz(txt).dup;
SDL_free(txt);
return toUTF32(s);
return normalizeEndOfLineCharacters(toUTF32(s));
}
/// sets text to clipboard (when mouseBuffer == true, use mouse selection clipboard - under linux)