mirror of https://github.com/buggins/dlangui.git
Merge pull request #549 from and3md/clipboard_sdl
Normalize end of line characters when get text from clipboard in SDL
This commit is contained in:
commit
0bff4c9778
|
@ -1489,7 +1489,7 @@ class SDLPlatform : Platform {
|
||||||
return ""d;
|
return ""d;
|
||||||
string s = fromStringz(txt).dup;
|
string s = fromStringz(txt).dup;
|
||||||
SDL_free(txt);
|
SDL_free(txt);
|
||||||
return toUTF32(s);
|
return normalizeEndOfLineCharacters(toUTF32(s));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// sets text to clipboard (when mouseBuffer == true, use mouse selection clipboard - under linux)
|
/// sets text to clipboard (when mouseBuffer == true, use mouse selection clipboard - under linux)
|
||||||
|
|
Loading…
Reference in New Issue