mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:07:45 +00:00
LibCore: Fix bug in IODevice::LineIterator causing skipped lines
This commit is contained in:
parent
8d3faecd9b
commit
6d948c1a92
1 changed files with 3 additions and 1 deletions
|
@ -304,7 +304,9 @@ LineIterator::LineIterator(IODevice& device, bool is_end)
|
||||||
: m_device(device)
|
: m_device(device)
|
||||||
, m_is_end(is_end)
|
, m_is_end(is_end)
|
||||||
{
|
{
|
||||||
|
if (!m_is_end) {
|
||||||
++*this;
|
++*this;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool LineIterator::at_end() const
|
bool LineIterator::at_end() const
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue