From 61db164302552efcbaa426598ccd4df8847c95f9 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Sun, 28 Feb 2021 14:56:42 +0100 Subject: [PATCH] Fix bug #11444 --- src/mathed/InsetMathNest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;