- // move into an inset to the right if possible
- InsetBase * n = 0;
- if (top.pos() != lastpos()) {
- // this is impossible for pos() == size()
- if (inMathed()) {
- n = (top.cell().begin() + top.pos())->nucleus();
- } else {
- if (paragraph().isInset(top.pos()))
- n = paragraph().getInset(top.pos());
- }
- }