if (!inset || !cur.result().dispatched())
cur.dispatch(cmd);
+ // FIXME I'm adding the last break to solve a crash,
+ // but that is obviously not right.
if (!cur.result().dispatched())
// It did not work too; no action needed.
break;
+ break;
}
case LFUN_PARAGRAPH_GOTO: {
InsetIterator it = inset_iterator_begin(inset);
InsetIterator const end = inset_iterator_end(inset);
for (; it != end; ++it) {
- if (!it->asInsetMath()
+ if (it->asInsetCollapsable()
&& (inset_code == NO_CODE
|| inset_code == it->lyxCode())) {
Cursor tmpcur = cur;
tmpcur.pushBackward(*it);
- FuncStatus flag;
- it->getStatus(tmpcur, fr, flag);
- if (flag.enabled())
- it->dispatch(tmpcur, fr);
+ it->dispatch(tmpcur, fr);
}
}
processUpdateFlags(Update::Force | Update::FitCursor);
{
Cursor & cur = d->cursor_;
+ LYXERR(Debug::SELECTION, "requestSelection: cur.selection: " << cur.selection());
if (!cur.selection()) {
d->xsel_cache_.set = false;
return docstring();