Cursor & bvcur = bv->cursor();
bvcur.setCursor(from);
bvcur.clearSelection();
- bvcur.setSelection(true);
+ bvcur.selection(true);
bvcur.setCursor(end);
- bvcur.setSelection(true);
+ bvcur.selection(true);
} else {
// FIXME LFUN
// If we used a LFUN, dispatch would do all of this for us
int const size = end.pos() - from.pos();
bv->putSelectionAt(from, size, false);
}
- bv->processUpdateFlags(Update::Force | Update::FitCursor);
+ bv->processUpdateFlags(Update::Force | Update::FitCursor);
}
void SpellcheckerWidget::Private::forward()
LYXERR(Debug::GUI, "Replace all (" << replacement << ")");
dispatch(FuncRequest(LFUN_WORD_REPLACE, datastring));
d->forward();
+ // replace all wraps around
+ d->wrapAround(true);
d->check(); // continue spellchecking
d->canCheck();
}
Dialog * createGuiSpellchecker(GuiView & lv)
{
GuiSpellchecker * gui = new GuiSpellchecker(lv, Qt::RightDockWidgetArea);
-#ifdef Q_WS_MACX
+#ifdef Q_OS_MAC
gui->setFloating(true);
#endif
return gui;