]> git.lyx.org Git - features.git/commitdiff
Return UNDISPATCHED instead of FINISHED in the default branch
authorAndré Pönitz <poenitz@gmx.net>
Thu, 13 Sep 2001 16:14:43 +0000 (16:14 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Thu, 13 Sep 2001 16:14:43 +0000 (16:14 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2757 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/formulabase.C
src/mathed/math_cursor.C
src/mathed/math_parser.C

index 2436eda6a7fdf20e708c6f78f0b8f3f0cff2a40c..4c2f8fab3a7195dfbd9d7e4f8aae887ffa42447b 100644 (file)
@@ -1,9 +1,8 @@
  /*
-*  File:        formula.C
-*  Purpose:     Implementation of formula inset
+*  File:        formulabase.C
+*  Purpose:     Implementation of common parts of the LyX  math insets
 *  Author:      Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
 *  Created:     January 1996
-*  Description: Allows the edition of math paragraphs inside Lyx.
 *
 *  Copyright: 1996-1998 Alejandro Aguilar Sierra
 *
@@ -692,8 +691,7 @@ InsetFormulaBase::localDispatch(BufferView * bv, kb_action action,
                break;
 
        default:
-               lyxerr << "Closed by action " << action << endl;
-               result = FINISHED_RIGHT;
+               result = UNDISPATCHED;
        }
 
        //mathcursor->normalize();
index 8e70193a4dbe92dc9b422a714833855a73efc606..12ec4a6ad2cbe956e9147823990e03b766684a81 100644 (file)
@@ -1273,6 +1273,7 @@ void MathCursor::interpret(string const & s)
 
        if (lastcode_ != LM_TC_TEX && strchr("#$%{}", c)) {
                insert(new MathSpecialCharInset(c));    
+               lastcode_ = LM_TC_VAR;
                return;
        }
 
index 10f2c46b1ad2380565c1394870f9f4744abc2c39..a63b0b0fbab0f48c58f1319e637f67a2dfef5006 100644 (file)
@@ -776,9 +776,6 @@ void Parser::parse_into(MathArray & array, unsigned flags, MathTextCodes code)
                        break; 
                }
 
-               else  LM_TK_SPECIAL:
-                       array.push_back(new MathCharInset(ival_, LM_TC_TEX));
-                       break;
 */
                
                else if (t.cs() == "begin") {