Return UNDISPATCHED instead of FINISHED in the default branch

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2757 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2001-09-13 16:14:43 +00:00
parent 0fa2f8db17
commit a4dab932ac
3 changed files with 4 additions and 8 deletions

View File

@ -1,9 +1,8 @@
/* /*
* File: formula.C * File: formulabase.C
* Purpose: Implementation of formula inset * Purpose: Implementation of common parts of the LyX math insets
* Author: Alejandro Aguilar Sierra <asierra@servidor.unam.mx> * Author: Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
* Created: January 1996 * Created: January 1996
* Description: Allows the edition of math paragraphs inside Lyx.
* *
* Copyright: 1996-1998 Alejandro Aguilar Sierra * Copyright: 1996-1998 Alejandro Aguilar Sierra
* *
@ -692,8 +691,7 @@ InsetFormulaBase::localDispatch(BufferView * bv, kb_action action,
break; break;
default: default:
lyxerr << "Closed by action " << action << endl; result = UNDISPATCHED;
result = FINISHED_RIGHT;
} }
//mathcursor->normalize(); //mathcursor->normalize();

View File

@ -1273,6 +1273,7 @@ void MathCursor::interpret(string const & s)
if (lastcode_ != LM_TC_TEX && strchr("#$%{}", c)) { if (lastcode_ != LM_TC_TEX && strchr("#$%{}", c)) {
insert(new MathSpecialCharInset(c)); insert(new MathSpecialCharInset(c));
lastcode_ = LM_TC_VAR;
return; return;
} }

View File

@ -776,9 +776,6 @@ void Parser::parse_into(MathArray & array, unsigned flags, MathTextCodes code)
break; break;
} }
else LM_TK_SPECIAL:
array.push_back(new MathCharInset(ival_, LM_TC_TEX));
break;
*/ */
else if (t.cs() == "begin") { else if (t.cs() == "begin") {