1
0
mirror of https://github.com/json-iterator/go.git synced 2025-07-06 23:37:39 +02:00

#130 loadMore should use iter.captured

This commit is contained in:
Tao Wen
2017-07-12 17:56:51 +08:00
parent dc388588a3
commit 4b33139ad0
2 changed files with 58 additions and 1 deletions

View File

@ -236,7 +236,7 @@ func (iter *Iterator) loadMore() bool {
}
return false
}
if iter.captureStartedAt != -1 {
if iter.captured != nil {
iter.captured = append(iter.captured,
iter.buf[iter.captureStartedAt:iter.tail]...)
iter.captureStartedAt = 0