* Update::SinglePar is enough, Update::Force is a fullscreen update

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23251 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Stefan Schimanski 2008-02-26 14:22:56 +00:00
parent d1511fcb47
commit 4413bf3783
3 changed files with 6 additions and 9 deletions

View File

@ -2221,13 +2221,10 @@ void BufferView::setInlineCompletion(Cursor & cur, DocIterator const & pos,
// set update flags
if (changed) {
//lyxerr << "inlineCompletion changed" << std::endl;
Update::flags flags
= cur.disp_.update() | Update::Force;
if (singlePar && !(flags | Update::SinglePar))
flags = flags | Update::SinglePar;
cur.updateFlags(flags);
if (singlePar && !(cur.disp_.update() | Update::Force))
cur.updateFlags(cur.disp_.update() | Update::SinglePar);
else
cur.updateFlags(cur.disp_.update() | Update::Force);
}
}

View File

@ -547,7 +547,7 @@ bool InsetText::insertCompletion(Cursor & cur, docstring const & s,
cur.insert(s);
cur.bv().cursor() = cur;
if (!(cur.disp_.update() & Update::Force))
cur.updateFlags(cur.disp_.update() | Update::Force | Update::SinglePar);
cur.updateFlags(cur.disp_.update() | Update::SinglePar);
return true;
}

View File

@ -804,7 +804,7 @@ bool MathMacro::insertCompletion(Cursor & cur, docstring const & s,
if (finished) {
cur.bv().cursor().pop();
++cur.bv().cursor().pos();
cur.updateFlags(Update::Force | Update::SinglePar);
cur.updateFlags(Update::SinglePar);
}
return true;