* Update::SinglePar should be enough for most cases. In notifyCursorLeaves though we might need a fullscreen redraw if we don't add more clever checks whether the cursors moved to another paragraph.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23415 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Stefan Schimanski 2008-03-03 15:21:13 +00:00
parent 7406991fd4
commit d87c5c062b
2 changed files with 9 additions and 9 deletions

View File

@ -437,7 +437,7 @@ void MathMacro::draw(PainterInfo & pi, int x, int y) const
// edit mode changed?
if (editing_[pi.base.bv] != editMode(pi.base.bv))
pi.base.bv->cursor().updateFlags(Update::Force);
pi.base.bv->cursor().updateFlags(Update::SinglePar);
}
@ -514,7 +514,7 @@ void MathMacro::validate(LaTeXFeatures & features) const
void MathMacro::edit(Cursor & cur, bool front, EntryDirection entry_from)
{
cur.updateFlags(Update::Force);
cur.updateFlags(Update::SinglePar);
InsetMathNest::edit(cur, front, entry_from);
}
@ -523,7 +523,7 @@ Inset * MathMacro::editXY(Cursor & cur, int x, int y)
{
// We may have 0 arguments, but InsetMathNest requires at least one.
if (nargs() > 0) {
cur.updateFlags(Update::Force);
cur.updateFlags(Update::SinglePar);
return InsetMathNest::editXY(cur, x, y);
} else
return this;
@ -595,14 +595,14 @@ void MathMacro::attachArguments(vector<MathData> const & args, size_t arity, int
bool MathMacro::idxFirst(Cursor & cur) const
{
cur.updateFlags(Update::Force);
cur.updateFlags(Update::SinglePar);
return InsetMathNest::idxFirst(cur);
}
bool MathMacro::idxLast(Cursor & cur) const
{
cur.updateFlags(Update::Force);
cur.updateFlags(Update::SinglePar);
return InsetMathNest::idxLast(cur);
}
@ -618,7 +618,7 @@ void MathMacro::fold(Cursor & cur)
{
if (!nextFoldMode_) {
nextFoldMode_ = true;
cur.updateFlags(Update::Force);
cur.updateFlags(Update::SinglePar);
}
}
@ -627,7 +627,7 @@ void MathMacro::unfold(Cursor & cur)
{
if (nextFoldMode_) {
nextFoldMode_ = false;
cur.updateFlags(Update::Force);
cur.updateFlags(Update::SinglePar);
}
}
@ -799,7 +799,7 @@ bool MathMacro::insertCompletion(Cursor & cur, docstring const & s,
docstring newName = name() + s;
asArray(newName, cell(0));
cur.bv().cursor().pos() = name().size();
cur.updateFlags(Update::Force);
cur.updateFlags(Update::SinglePar);
// finish macro
if (finished) {

View File

@ -610,7 +610,7 @@ void MathMacroTemplate::draw(PainterInfo & pi, int x, int y) const
void MathMacroTemplate::edit(Cursor & cur, bool front, EntryDirection entry_from)
{
updateLook(true);
cur.updateFlags(Update::Force);
cur.updateFlags(Update::SinglePar);
InsetMathNest::edit(cur, front, entry_from);
}