Avoid incorrect "Autocorrect Off" message

This commit is contained in:
Jean-Marc Lasgouttes 2016-02-28 17:21:26 +01:00 committed by Richard Heck
parent 5739433feb
commit 9fbee19a7f

View File

@ -715,8 +715,10 @@ void InsetMathNest::doDispatch(Cursor & cur, FuncRequest & cmd)
cur.selHandle(select); cur.selHandle(select);
// handle autocorrect: // handle autocorrect:
cur.autocorrect() = false; if (lyxrc.autocorrection_math && cur.autocorrect()) {
cur.message(_("Autocorrect Off ('!' to enter)")); cur.autocorrect() = false;
cur.message(_("Autocorrect Off ('!' to enter)"));
}
// go up/down // go up/down
bool up = act == LFUN_UP || act == LFUN_UP_SELECT; bool up = act == LFUN_UP || act == LFUN_UP_SELECT;