Fixed range error with CR line endings
This commit is contained in:
parent
0f37f6692d
commit
68839deadc
|
@ -1707,14 +1707,17 @@ L_advance:
|
|||
src.popFront();
|
||||
foundNewline = true;
|
||||
}
|
||||
if (src.front == '\n')
|
||||
if (!src.empty)
|
||||
{
|
||||
src.popFront();
|
||||
foundNewline = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
src.popFront();
|
||||
if (src.front == '\n')
|
||||
{
|
||||
src.popFront();
|
||||
foundNewline = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
src.popFront();
|
||||
}
|
||||
}
|
||||
if (foundNewline)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue