mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 03:36:39 +00:00
* 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:
parent
d1511fcb47
commit
4413bf3783
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user