]> git.lyx.org Git - lyx.git/blobdiff - src/Cursor.cpp
Typo.
[lyx.git] / src / Cursor.cpp
index be042940a081b3806ca129c6f0d657f8f081b99e..7a13e1c3c9a5229997f8e8295c533d5dd540a32f 100644 (file)
@@ -1599,11 +1599,8 @@ bool Cursor::macroModeClose()
 
        docstring const name = s.substr(1);
        InsetMathNest * const in = inset().asInsetMath()->asNestInset();
-       if (in && in->interpretString(*this, s)) {
-               // end undo group that was opened before in was created
-               endUndoGroup();
+       if (in && in->interpretString(*this, s))
                return true;
-       }
        MathAtom atom = buffer()->getMacro(name, *this, false) ?
                MathAtom(new MathMacro(buffer(), name)) : createInsetMath(name, buffer());
 
@@ -1636,9 +1633,7 @@ bool Cursor::macroModeClose()
                else
                        insert(selection);
        }
-
-       // end undo group that was opened before in was created
-       endUndoGroup();
+       
        return true;
 }