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:
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_is_end(is_end)
|
||||
{
|
||||
if (!m_is_end) {
|
||||
++*this;
|
||||
}
|
||||
}
|
||||
|
||||
bool LineIterator::at_end() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue