diff --git a/src/mathed/InsetMathNest.cpp b/src/mathed/InsetMathNest.cpp index c6ea58577e..01719e50f7 100644 --- a/src/mathed/InsetMathNest.cpp +++ b/src/mathed/InsetMathNest.cpp @@ -791,7 +791,7 @@ void InsetMathNest::doDispatch(Cursor & cur, FuncRequest & cmd) cur.clearTargetX(); cur.macroModeClose(); if (!cur.inset().idxPrev(cur)) { - cur.idx() = lastIdx(); + cur.idx() = cur.lastidx(); cur.pos() = lyxrc.mac_like_cursor_movement ? cur.lastpos() : 0; } break;