]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathNest.cpp
remove unneeded header.
[lyx.git] / src / mathed / InsetMathNest.cpp
index a80c791554bee515ef96fe305c400696c7df0768..8c835a0f7f06d25f8754b62944888a191e0b1f12 100644 (file)
@@ -492,6 +492,10 @@ void InsetMathNest::doDispatch(Cursor & cur, FuncRequest & cmd)
                cur.autocorrect() = false;
                cur.clearTargetX();
                cur.macroModeClose();
+               if (cur.isRTL() )
+                       goto goto_char_backwards;
+
+goto_char_forwards:
                if (cur.pos() != cur.lastpos() && cur.openable(cur.nextAtom())) {
                        cur.pushLeft(*cur.nextAtom().nucleus());
                        cur.inset().idxFirst(cur);
@@ -511,6 +515,10 @@ void InsetMathNest::doDispatch(Cursor & cur, FuncRequest & cmd)
                cur.autocorrect() = false;
                cur.clearTargetX();
                cur.macroModeClose();
+               if (cur.isRTL())
+                       goto goto_char_forwards;
+
+goto_char_backwards:
                if (cur.pos() != 0 && cur.openable(cur.prevAtom())) {
                        cur.posLeft();
                        cur.push(*cur.nextAtom().nucleus());
@@ -983,7 +991,7 @@ void InsetMathNest::doDispatch(Cursor & cur, FuncRequest & cmd)
        }
 
        default:
-               InsetMathDim::doDispatch(cur, cmd);
+               InsetMath::doDispatch(cur, cmd);
                break;
        }
 }