From: André Pönitz Date: Mon, 15 Apr 2002 08:50:20 +0000 (+0000) Subject: Hotfix to move cursor to the right when pressing M-m g x in text mode. X-Git-Tag: 1.6.10~19414 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=db61b4cd537394ce63b69d2193620fa1d811c96f;p=features.git Hotfix to move cursor to the right when pressing M-m g x in text mode. We desperately need context sensitive keybindings and more atomic LFUNs.. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3992 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/formulabase.C b/src/mathed/formulabase.C index 3caaea28a4..c853281266 100644 --- a/src/mathed/formulabase.C +++ b/src/mathed/formulabase.C @@ -959,8 +959,11 @@ void mathDispatchInsertMath(BufferView * bv, string const & arg) InsetFormula * f = new InsetFormula(arg); if (!bv->insertInset(f)) delete f; - } else + else if (!mathcursor) // hotfix + bv->getLyXText()->cursorRight(bv); + } else { mathDispatchMathMode(bv, arg); + } } }