forked from mia/Aegisub
bug in line reading
Originally committed to SVN as r923.
This commit is contained in:
parent
505e09257e
commit
008d60ba65
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue