1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:07:34 +00:00

LibCore: Fix bug in IODevice::LineIterator causing skipped lines

This commit is contained in:
Sahan Fernando 2021-12-07 01:15:46 +11:00 committed by Ali Mohammad Pur
parent 8d3faecd9b
commit 6d948c1a92

View file

@ -304,7 +304,9 @@ LineIterator::LineIterator(IODevice& device, bool is_end)
: m_device(device)
, m_is_end(is_end)
{
if (!m_is_end) {
++*this;
}
}
bool LineIterator::at_end() const