]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathNest.cpp
We only support gcc >= 4.9.
[lyx.git] / src / mathed / InsetMathNest.cpp
index c6ea58577ede1502ae4d4fc061456cb8f156c531..01719e50f7c81d0440847f5e1dc2ef78e10b6ae1 100644 (file)
@@ -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;