]> git.lyx.org Git - features.git/commitdiff
Fix bug #6015: Macro with arguments is not finished when pressing space
authorVincent van Ravesteijn <vfr@lyx.org>
Tue, 7 Jul 2009 08:08:14 +0000 (08:08 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Tue, 7 Jul 2009 08:08:14 +0000 (08:08 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30392 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/InsetMathNest.cpp

index 25fd69a4c7634e837d3cdf3032f1f967548dcbe4..c5bf2ea2988a69a50fa813609a25663e78c9f6b8 100644 (file)
@@ -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);