an-cabal/an-rope

Implement Rope::char_indices correctly

Closed this issue · 0 comments

hawkw commented

From the TODO comment in internals.rs:

TODO: this is actually Wrong, the indices will wrap around once we iterate into the next leaf node. we'll need to write our own char_indices iterator that tracks the character's index in the global Rope. shouldn't be too hard, just a fold...