]> git.lyx.org Git - features.git/blobdiff - src/mathed/math_cursor.C
iookup unification - another 100 lines bite the dust
[features.git] / src / mathed / math_cursor.C
index b0811d3b57044d4e509dec45c42ad7ce0a629ad3..73095ef42f30c19ad8aabbf041ce1fbae8ce3a14 100644 (file)
@@ -669,7 +669,7 @@ void MathCursor::interpret(string const & s)
                        case LM_TK_SYM: {
                                MathTextCodes code = static_cast<MathTextCodes>(l->id);
                                if (code < 255)
-                                       insert(l->id, MathIsBOPS(code) ? LM_TC_BOPS : LM_TC_SYMB);
+                                       insert(l->id, l->bin != LMB_NONE ? LM_TC_BOPS : LM_TC_SYMB);
                                else
                                        p = new MathFuncInset(l->name);
                                break;
@@ -733,7 +733,9 @@ void MathCursor::macroModeOpen()
 {
        if (!imacro_) {
                imacro_ = new MathFuncInset("");
-               insert(imacro_);
+               array().insert(cursor().pos_, imacro_);
+               array().next(cursor().pos_);
+               //insert(imacro_);
        } else
                lyxerr << "Math Warning: Already in macro mode" << endl;
 }