return true;
}
- if (cur.pos() > 0) {
- MathMacro const * macro = cur.inset().asInsetMath()->asMacro();
- if (macro && macro->displayMode() == MathMacro::DISPLAY_UNFOLDED) {
- // resume macro_mode
- docstring const & s = macro->name();
- cur.leaveInset(*macro);
- cur.plainErase();
- docstring safe = grabAndEraseSelection(cur);
- cur.insert(MathAtom(new InsetMathUnknown("\\" + s + c, safe, false)));
- return true;
- }
+ MathMacro const * macro = cur.inset().asInsetMath()->asMacro();
+ if (macro && macro->displayMode() == MathMacro::DISPLAY_UNFOLDED) {
+ // resume macro_mode
+ docstring const & s = macro->name();
+ cur.leaveInset(*macro);
+ cur.plainErase();
+ docstring safe = grabAndEraseSelection(cur);
+ cur.insert(MathAtom(new InsetMathUnknown("\\" + s + c, safe, false)));
+ return true;
}
selClearOrDel(cur);