Open hawkw opened 7 years ago
I think we can fix this in much the same way as we fixed #58, so there's example code to work off of. I'm not going to tag this as "easy", though, since the solution is still fairly complex. If anybody else is feeling up to it, feel free to assign this to yourself; otherwise, I'm happy to take care of it.
I added tests for this in the fix-split-whitespace
branch, bdebff5117f1aefdf8f269c94735502ed7d7ee12.
Although we fixed the
Rope.lines()
iterator (#58), I think the same problem also exists for thesplit()
andsplit_whitespace()
iterators.The
fix-split-whitespace
branch adds tests demonstrating this incorrect behaviour.