mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Spare a few cpu cycles on average.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32474 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
c2befc2b1e
commit
9e423f23fa
@ -1303,7 +1303,7 @@ void Cursor::niceInsert(docstring const & t, Parse::flags f, bool enter)
|
||||
{
|
||||
MathData ar(buffer());
|
||||
asArray(t, ar, f);
|
||||
if (ar.size() == 1 && (selection() || enter))
|
||||
if (ar.size() == 1 && (enter || selection()))
|
||||
niceInsert(ar[0]);
|
||||
else
|
||||
insert(ar);
|
||||
|
Loading…
Reference in New Issue
Block a user