aboutsummaryrefslogtreecommitdiffstats
path: root/src/input
diff options
context:
space:
mode:
Diffstat (limited to 'src/input')
-rw-r--r--src/input/TextInputStream.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/input/TextInputStream.cxx b/src/input/TextInputStream.cxx
index c23616782..b79f64bdc 100644
--- a/src/input/TextInputStream.cxx
+++ b/src/input/TextInputStream.cxx
@@ -33,6 +33,8 @@ TextInputStream::ReadLine()
if (line != nullptr)
return line;
+ buffer.Shift();
+
while (true) {
auto dest = buffer.Write();
if (dest.size < 2) {