On Wed, Oct 09, 2002 at 05:30:37PM +0200, Jean-Marc Lasgouttes wrote:
> Michael>    #571 
> 
> Andre, do you have plans to add support (or at least disable) these
> lfuns in mathed? Currently, they are executed by the underlying
> lyxtext, which is a bad thing. I suspect a couple empty 'case'
> statement would suffice.

Patch attached.

Andre'

-- 
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)
Index: formulabase.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/formulabase.C,v
retrieving revision 1.212
diff -u -p -r1.212 formulabase.C
--- formulabase.C       20 Sep 2002 12:36:36 -0000      1.212
+++ formulabase.C       9 Oct 2002 15:47:50 -0000
@@ -475,6 +475,7 @@ Inset::RESULT InsetFormulaBase::localDis
        case LFUN_HOMESEL:
                sel = true; // fall through
        case LFUN_HOME:
+       case LFUN_WORDLEFT:
                result = mathcursor->home(sel) ? DISPATCHED : FINISHED;
                updateLocal(bv, false);
                break;
@@ -482,18 +483,23 @@ Inset::RESULT InsetFormulaBase::localDis
        case LFUN_ENDSEL:
                sel = true; // fall through
        case LFUN_END:
+       case LFUN_WORDRIGHT:
                result = mathcursor->end(sel) ? DISPATCHED : FINISHED_RIGHT;
                updateLocal(bv, false);
                break;
 
        case LFUN_PRIORSEL:
        case LFUN_PRIOR:
+       case LFUN_BEGINNINGBUFSEL:
+       case LFUN_BEGINNINGBUF:
                result = FINISHED_UP;
                updateLocal(bv, false);
                break;
 
        case LFUN_NEXTSEL:
        case LFUN_NEXT:
+       case LFUN_ENDBUFSEL:
+       case LFUN_ENDBUF:
                result = FINISHED_DOWN;
                updateLocal(bv, false);
                break;

Reply via email to