- LCursor & cur = cursor();
- cur.reset();
- cur.push(buffer()->inset());
- ParIterator::PosHolder const & positions = par.positions();
- int const last = par.size() - 1;
- for (int i = 0; i < last; ++i)
- (*positions[i].it)->inset->edit(cur, true);
- cur.resetAnchor();
- LyXText * text = par.text(*buffer());
- text->setCursor(cur, text->parOffset(par.pit()), pos);
-}
-
-
-/*
-if the fitCursor call refers to some point in never-explored-land, then we
-don't have y information in insets there, then we cannot even do an update
-to get it (because we need the y infomation for setting top_y first). So
-this is solved in putSelectionAt with:
+ for (int i = 0, n = par.size(); i < n; ++i)
+ par[i].inset().edit(cursor(), true);