]> git.localhorst.tv Git - blank.git/commitdiff
fix head reset of LineBuffer after extraction
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Fri, 25 Nov 2016 13:18:14 +0000 (14:18 +0100)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Fri, 25 Nov 2016 13:18:14 +0000 (14:18 +0100)
src/io/LineBuffer.hpp

index 4fcc3ca0e81127e0131bd5a788f811b79d5af5ad..286cba56dacbd79ddf741c3e90907a2e360f5ec2 100644 (file)
@@ -40,6 +40,7 @@ public:
                line.assign(begin(), line_end);
                ++line_end;
                std::move(line_end, end(), begin());
+               head -= std::distance(begin(), line_end);
                return true;
        }