1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-23 18:18:00 +02:00

Fix PendingNewlineCheck

This commit is contained in:
disarray2077 2023-05-05 00:12:49 -03:00 committed by GitHub
parent 3a4b22c6b1
commit f070c3e0d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -501,9 +501,9 @@ namespace System.IO
}
}
if ((mPendingNewlineCheck) && (mCharPos < mCharLen))
if (mPendingNewlineCheck)
{
if (mCharBuffer[mCharPos] == '\n') mCharPos++;
if (mCharPos == 0 && mCharBuffer[mCharPos] == '\n') mCharPos++;
mPendingNewlineCheck = false;
}
}