]> git.lyx.org Git - features.git/commitdiff
Hotfix to move cursor to the right when pressing M-m g x in text mode.
authorAndré Pönitz <poenitz@gmx.net>
Mon, 15 Apr 2002 08:50:20 +0000 (08:50 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Mon, 15 Apr 2002 08:50:20 +0000 (08:50 +0000)
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

src/mathed/formulabase.C

index 3caaea28a41f809054395c64efe311e5ac61979e..c853281266d43d7922aed233075df9dd6a600ef9 100644 (file)
@@ -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);
+               }
        }
 }