mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Code simplification (thx Vincent).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37341 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
5ee3c34096
commit
e70a79fc0b
@ -1341,13 +1341,11 @@ int Cursor::niceInsert(docstring const & t, Parse::flags f, bool enter)
|
||||
{
|
||||
MathData ar(buffer());
|
||||
asArray(t, ar, f);
|
||||
if (ar.size() == 1 && (enter || selection())) {
|
||||
if (ar.size() == 1 && (enter || selection()))
|
||||
niceInsert(ar[0]);
|
||||
return 1;
|
||||
} else {
|
||||
else
|
||||
insert(ar);
|
||||
return ar.size();
|
||||
}
|
||||
return ar.size();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user