From 76cfd7704d76e7ef7a262a880fa4c177045a9350 Mon Sep 17 00:00:00 2001 From: Ferdinand Majerech Date: Tue, 29 Jul 2014 02:59:33 +0200 Subject: [PATCH] forward() invalidates last decoded offsets. --- source/dyaml/reader.d | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/dyaml/reader.d b/source/dyaml/reader.d index cc8f5d8..cff6619 100644 --- a/source/dyaml/reader.d +++ b/source/dyaml/reader.d @@ -294,6 +294,9 @@ final class Reader } else if(c != '\uFEFF') { ++column_; } } + + lastDecodedBufferOffset_ = bufferOffset8_; + lastDecodedCharOffset_ = 0; } /// Used to build slices of read data in Reader; to avoid allocations.