From 2cbf623b37a72ea8edc674bbb1e5b6920573925b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Thu, 16 Aug 2001 11:57:45 +0000 Subject: [PATCH] leave math not only to the left (Thanks, Juergen!) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2526 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/formulabase.C | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mathed/formulabase.C b/src/mathed/formulabase.C index 46a60f9055..e8ea7585ac 100644 --- a/src/mathed/formulabase.C +++ b/src/mathed/formulabase.C @@ -382,7 +382,7 @@ InsetFormulaBase::localDispatch(BufferView * bv, kb_action action, sel = true; // fall through... case LFUN_RIGHT: - result = DISPATCH_RESULT(mathcursor->right(sel)); + result = mathcursor->right(sel) ? DISPATCHED : FINISHED_RIGHT; updateLocal(bv, false); break; @@ -391,7 +391,7 @@ InsetFormulaBase::localDispatch(BufferView * bv, kb_action action, sel = true; // fall through case LFUN_LEFT: - result = DISPATCH_RESULT(mathcursor->left(sel)); + result = mathcursor->left(sel) ? DISPATCHED : FINISHED; updateLocal(bv, false); break; @@ -400,7 +400,7 @@ InsetFormulaBase::localDispatch(BufferView * bv, kb_action action, sel = true; case LFUN_UP: - result = DISPATCH_RESULT(mathcursor->up(sel)); + result = mathcursor->up(sel) ? DISPATCHED : FINISHED_UP; updateLocal(bv, false); break; @@ -409,7 +409,7 @@ InsetFormulaBase::localDispatch(BufferView * bv, kb_action action, sel = true; case LFUN_DOWN: - result = DISPATCH_RESULT(mathcursor->down(sel)); + result = mathcursor->down(sel) ? DISPATCHED : FINISHED_DOWN; updateLocal(bv, false); break; @@ -690,7 +690,7 @@ InsetFormulaBase::localDispatch(BufferView * bv, kb_action action, default: lyxerr << "Closed by action " << action << endl; - result = FINISHED; + result = FINISHED_RIGHT; } mathcursor->normalize(); -- 2.39.2