fixIfBroken();
FuncRequest cmd = cmd0;
Cursor safe = *this;
+ disp_ = DispatchResult();
buffer()->undo().beginUndoGroup();
if (lyxaction.funcHasFlag(cmd.action(), LyXAction::AtPoint)
&& nextInset()) {
disp_.dispatched(true);
- disp_.update(Update::FitCursor | Update::Force);
+ disp_.screenUpdate(Update::FitCursor | Update::Force);
FuncRequest tmpcmd = cmd;
LYXERR(Debug::DEBUG, "Cursor::dispatch: (AtPoint) cmd: "
<< cmd0 << endl << *this);
// The common case is 'LFUN handled, need update', so make the
// LFUN handler's life easier by assuming this as default value.
// The handler can reset the update and val flags if necessary.
- disp_.update(Update::FitCursor | Update::Force);
+ disp_.screenUpdate(Update::FitCursor | Update::Force);
disp_.dispatched(true);
inset().dispatch(*this, cmd);
if (disp_.dispatched())
safe.pos() = safe.lastpos();
}
operator=(safe);
- disp_.update(Update::None);
+ disp_.screenUpdate(Update::None);
disp_.dispatched(false);
} else {
// restore the previous one because nested Cursor::dispatch calls
void Cursor::screenUpdateFlags(Update::flags f)
{
- disp_.update(f);
+ disp_.screenUpdate(f);
}
void Cursor::noScreenUpdate()
{
- disp_.update(Update::None);
+ disp_.screenUpdate(Update::None);
}
// get font
BufferParams const & bufparams = buffer()->params();
current_font = par.getFontSettings(bufparams, cpos);
- current_font.setMisspelled(false);
real_current_font = tm.displayFont(cpit, cpos);
- real_current_font.setMisspelled(false);
// special case for paragraph end
if (cs.pos() == lastpos()