From: Vincent van Ravesteijn Date: Tue, 7 Jul 2009 08:08:14 +0000 (+0000) Subject: Fix bug #6015: Macro with arguments is not finished when pressing space X-Git-Tag: 2.0.0~6149 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=fb57c00c0d13d7f3a4a78527b07d3c74d4a001f1;p=features.git Fix bug #6015: Macro with arguments is not finished when pressing space git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30392 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/InsetMathNest.cpp b/src/mathed/InsetMathNest.cpp index 25fd69a4c7..c5bf2ea298 100644 --- a/src/mathed/InsetMathNest.cpp +++ b/src/mathed/InsetMathNest.cpp @@ -1571,7 +1571,7 @@ bool InsetMathNest::interpretChar(Cursor & cur, char_type const c) if (cur.pos() > 0) { MathMacro const * macro = cur.inset().asInsetMath()->asMacro(); - if (macro) { + if (macro && macro->displayMode() == MathMacro::DISPLAY_UNFOLDED) { // resume macro_mode docstring const & s = macro->name(); cur.leaveInset(*macro);