Fixed range error with CR line endings
This commit is contained in:
parent
0f37f6692d
commit
68839deadc
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue