void LyXFunc::dispatch(FuncRequest const & cmd)
{
+ BOOST_ASSERT(view());
string const argument = cmd.argument;
kb_action const action = cmd.action;
update |= view()->cursor().result().update();
else
update |= view()->dispatch(cmd);
-
break;
}
}
// Redraw screen unless explicitly told otherwise.
// This also initializes the position cache for all insets
// in (at least partially) visible top-level paragraphs.
- if (update)
- view()->update();
-
- // fitCursor() needs valid inset position. The previous call to
- // update() makes sure we have such even for freshly created
- // insets.
- if (view()->fitCursor())
- view()->update();
+ view()->update(true, update);
+
// if we executed a mutating lfun, mark the buffer as dirty
if (getStatus(cmd).enabled()
&& !lyxaction.funcHasFlag(cmd.action, LyXAction::NoBuffer)