Maintain cursor stack's position correctly when ascending the tree

This fixes a bug that could cause the cursor to incorrectly report its
start when using `slice` or `seek_forward`, and then calling `prev`. We
didn't notice this because we were not testing those three methods
together.

I suppose this could explain some of the panics we've observed because
we do use `slice`/`seek_forward` followed by `prev` calls in production.
2e0d051a78Antonio Scandurra committed on 7/27/2023, 10:34:03 AMparent129e711
2 files changedLine totals unavailable