Merge: Fix LineIterator
authorJean Privat <jean@pryen.org>
Fri, 7 Jun 2019 17:16:26 +0000 (13:16 -0400)
committerJean Privat <jean@pryen.org>
Fri, 7 Jun 2019 17:16:26 +0000 (13:16 -0400)
The logic behind LineIteraor (and the contracts of the iterators methods) was broken because of a bad management of the cache.

Instead of solving it locally, this PR introduces a simple CacheIterator abstract class with the correct behavior and simplify LineIteraor by using it.

Pull-Request: #2750


Trivial merge