mirror of https://github.com/odrling/Aegisub
parent
505e09257e
commit
008d60ba65
|
@ -211,7 +211,7 @@ wxString TextFileReader::ReadLineFromFile() {
|
||||||
// FIXME, this might break on incomplete multibyte characters
|
// FIXME, this might break on incomplete multibyte characters
|
||||||
wxString linepart(buffer, *conv);
|
wxString linepart(buffer, *conv);
|
||||||
wxbuffer += linepart;
|
wxbuffer += linepart;
|
||||||
if (buffer[511] == '\1') {
|
if (buffer[511] == '\1' || buffer[510] == '\n') {
|
||||||
// our sentinel \1 wasn't overwritten, meaning an EOL was found
|
// our sentinel \1 wasn't overwritten, meaning an EOL was found
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue