mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-02 14:19:15 +00:00
LibCore: Fix bug in IODevice::LineIterator causing skipped lines
This commit is contained in:
parent
8d3faecd9b
commit
6d948c1a92
Notes:
sideshowbarker
2024-07-17 22:54:30 +09:00
Author: https://github.com/ccapitalK
Commit: 6d948c1a92
Pull-request: https://github.com/SerenityOS/serenity/pull/11173
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/bgianfo
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)
|
||||
{
|
||||
++*this;
|
||||
if (!m_is_end) {
|
||||
++*this;
|
||||
}
|
||||
}
|
||||
|
||||
bool LineIterator::at_end() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue