]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_cursor.C
whichFont down to 5.3%
[lyx.git] / src / mathed / math_cursor.C
index 7de50259313ef67fcc97d9e8117cbae4fff8894d..a3581aff1a7aad7c2911bc5abcc300000564a88c 100644 (file)
@@ -428,6 +428,20 @@ void MathCursor::plainErase()
 }
 
 
+void MathCursor::markInsert()
+{
+       //lyxerr << "inserting mark\n";
+       array().insert(pos(), MathAtom(new MathCharInset(0, lastcode_)));
+}
+
+
+void MathCursor::markErase()
+{
+       //lyxerr << "deleting mark\n";
+       array().erase(pos());
+}
+
+
 void MathCursor::plainInsert(MathAtom const & t)
 {
        array().insert(pos(), t);
@@ -1377,6 +1391,8 @@ bool MathCursor::interpret(char c)
 
                if (c == '\\')
                        insert(c, LM_TC_TEX);
+               else
+                       insert(c, lastcode_);
 
                return true;
        }