mirror of
https://github.com/odrling/Aegisub
synced 2025-04-11 22:56:02 +02:00
bug in line reading
Originally committed to SVN as r923.
This commit is contained in:
parent
505e09257e
commit
008d60ba65
@ -211,7 +211,7 @@ wxString TextFileReader::ReadLineFromFile() {
|
||||
// FIXME, this might break on incomplete multibyte characters
|
||||
wxString linepart(buffer, *conv);
|
||||
wxbuffer += linepart;
|
||||
if (buffer[511] == '\1') {
|
||||
if (buffer[511] == '\1' || buffer[510] == '\n') {
|
||||
// our sentinel \1 wasn't overwritten, meaning an EOL was found
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user