mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +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
|
// set update flags
|
||||||
if (changed) {
|
if (changed) {
|
||||||
//lyxerr << "inlineCompletion changed" << std::endl;
|
if (singlePar && !(cur.disp_.update() | Update::Force))
|
||||||
|
cur.updateFlags(cur.disp_.update() | Update::SinglePar);
|
||||||
Update::flags flags
|
else
|
||||||
= cur.disp_.update() | Update::Force;
|
cur.updateFlags(cur.disp_.update() | Update::Force);
|
||||||
if (singlePar && !(flags | Update::SinglePar))
|
|
||||||
flags = flags | Update::SinglePar;
|
|
||||||
cur.updateFlags(flags);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -547,7 +547,7 @@ bool InsetText::insertCompletion(Cursor & cur, docstring const & s,
|
|||||||
cur.insert(s);
|
cur.insert(s);
|
||||||
cur.bv().cursor() = cur;
|
cur.bv().cursor() = cur;
|
||||||
if (!(cur.disp_.update() & Update::Force))
|
if (!(cur.disp_.update() & Update::Force))
|
||||||
cur.updateFlags(cur.disp_.update() | Update::Force | Update::SinglePar);
|
cur.updateFlags(cur.disp_.update() | Update::SinglePar);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -804,7 +804,7 @@ bool MathMacro::insertCompletion(Cursor & cur, docstring const & s,
|
|||||||
if (finished) {
|
if (finished) {
|
||||||
cur.bv().cursor().pop();
|
cur.bv().cursor().pop();
|
||||||
++cur.bv().cursor().pos();
|
++cur.bv().cursor().pos();
|
||||||
cur.updateFlags(Update::Force | Update::SinglePar);
|
cur.updateFlags(Update::SinglePar);
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user