Fixed range error with CR line endings

This commit is contained in:
Hackerpilot 2013-09-12 14:17:43 -07:00
parent 0f37f6692d
commit 68839deadc
1 changed files with 10 additions and 7 deletions

View File

@ -1707,14 +1707,17 @@ L_advance:
src.popFront(); src.popFront();
foundNewline = true; foundNewline = true;
} }
if (src.front == '\n') if (!src.empty)
{ {
src.popFront(); if (src.front == '\n')
foundNewline = true; {
} src.popFront();
else foundNewline = true;
{ }
src.popFront(); else
{
src.popFront();
}
} }
if (foundNewline) if (foundNewline)
{ {