Do not perform any autocorrection in the presence of a selection.
This commit is contained in:
Enrico Forestieri 2021-09-24 10:15:58 +02:00
parent dd947300bc
commit 9ae002b69f

View File

@ -1666,7 +1666,7 @@ void InsetMathNest::lfunMouseRelease(Cursor & cur, FuncRequest & cmd)
bool InsetMathNest::interpretChar(Cursor & cur, char_type const c)
{
// try auto-correction
if (lyxrc.autocorrection_math && cur.pos() != 0
if (lyxrc.autocorrection_math && cur.pos() != 0 && !cur.selection()
&& math_autocorrect(cur, c))
return true;