Cursor::backwardPos() may enter in a nested inset, while CursorSlice::backwardPos() will not.
bv->cursor().setCursor(cur);
bv->cursor().resetAnchor();
bv->cursor().setCursor(cur);
bv->cursor().resetAnchor();
+ CursorSlice & tip = cur.top();
+
if (!next)
// take a step into the change
if (!next)
// take a step into the change
- Change orig_change = cur.paragraph().lookupChange(cur.pos());
+ Change orig_change = tip.paragraph().lookupChange(tip.pos());
- CursorSlice & tip = cur.top();
if (next) {
for (; !tip.at_end(); tip.forwardPos()) {
Change change = tip.paragraph().lookupChange(tip.pos());
if (next) {
for (; !tip.at_end(); tip.forwardPos()) {
Change change = tip.paragraph().lookupChange(tip.pos());