]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetScript.cpp
File format change caused by 34eadf5d4.
[lyx.git] / src / insets / InsetScript.cpp
index 779464c7cd84009463d160963ec0da1bcf725000..a85444784f1c636e44c3e7493fb3599cc6c5dc60 100644 (file)
@@ -216,7 +216,7 @@ void InsetScript::doDispatch(Cursor & cur, FuncRequest & cmd)
 {
        switch (cmd.action()) {
        case LFUN_INSET_MODIFY:
-               cur.recordUndoInset(ATOMIC_UNDO, this);
+               cur.recordUndoInset(this);
                string2params(to_utf8(cmd.argument()), params_);
                break;
        default:
@@ -263,7 +263,6 @@ bool InsetScript::getStatus(Cursor & cur, FuncRequest const & cmd,
                FuncStatus & flag) const
 {
        switch (cmd.action()) {
-       case LFUN_PARAGRAPH_BREAK:
        case LFUN_LAYOUT:
        case LFUN_LAYOUT_PARAGRAPH:
        case LFUN_MATH_DISPLAY:
@@ -289,7 +288,7 @@ bool InsetScript::getStatus(Cursor & cur, FuncRequest const & cmd,
        case LFUN_INSET_MODIFY:
                flag.setEnabled(true);
                return true;
-        case LFUN_COMMAND_SEQUENCE: {
+       case LFUN_COMMAND_SEQUENCE: {
                // argument contains ';'-terminated commands
                string arg = to_utf8(cmd.argument());
                // prevent insertion of display math formulas like AMS align