From: Daniel Karbach Date: Fri, 25 Nov 2016 13:18:14 +0000 (+0100) Subject: fix head reset of LineBuffer after extraction X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=e927325f8b92c0d03c87fed77118f8e55df1b0c9;p=blank.git fix head reset of LineBuffer after extraction --- diff --git a/src/io/LineBuffer.hpp b/src/io/LineBuffer.hpp index 4fcc3ca..286cba5 100644 --- a/src/io/LineBuffer.hpp +++ b/src/io/LineBuffer.hpp @@ -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; }