X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathNest.cpp;h=8c835a0f7f06d25f8754b62944888a191e0b1f12;hb=b9765984c0e2d38b251b765cabfc9d23bf957a7a;hp=a80c791554bee515ef96fe305c400696c7df0768;hpb=e0d54dd3b497b78094ea16ab0f38ccdc8c1642e2;p=lyx.git diff --git a/src/mathed/InsetMathNest.cpp b/src/mathed/InsetMathNest.cpp index a80c791554..8c835a0f7f 100644 --- a/src/mathed/InsetMathNest.cpp +++ b/src/mathed/InsetMathNest.cpp @@ -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; } }