[LyX/master] Fix bug #11444

Enrico Forestieri forenr at lyx.org
Sun Feb 28 13:52:35 UTC 2021


commit 61db164302552efcbaa426598ccd4df8847c95f9
Author: Enrico Forestieri <forenr at lyx.org>
Date:   Sun Feb 28 14:56:42 2021 +0100

    Fix bug #11444
---
 src/mathed/InsetMathNest.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mathed/InsetMathNest.cpp b/src/mathed/InsetMathNest.cpp
index c6ea585..01719e5 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;


More information about the lyx-cvs mailing list