mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
somewhat better handling of LFUN_ENDBUFFER etc (#571)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5375 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
a9510d9432
commit
eb5ffba9aa
@ -475,6 +475,7 @@ Inset::RESULT InsetFormulaBase::localDispatch(FuncRequest const & cmd)
|
||||
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::localDispatch(FuncRequest const & cmd)
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user