When closing the macromode, do the same trick as in lines 835--838.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29686
a592a061-630c-0410-9148-
cb99ea01b6c8
}
// leave macro mode and try again if necessary
- cur.macroModeClose();
+ if (cur.macroModeClose()) {
+ MathAtom const atom = cur.prevAtom();
+ if (atom->asNestInset() && atom->isActive()) {
+ cur.posBackward();
+ cur.pushBackward(*cur.nextInset());
+ }
+ }
if (c == '{')
cur.niceInsert(MathAtom(new InsetMathBrace));
else if (c != ' ')