mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-06 00:10:59 +00:00
gcc compile fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21476 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
ddbcee01ac
commit
216775d3c7
@ -544,22 +544,24 @@ void InsetMathNest::doDispatch(Cursor & cur, FuncRequest & cmd)
|
||||
case LFUN_CHAR_RIGHT_SELECT:
|
||||
//FIXME: for visual cursor, really move right
|
||||
if (reverseDirectionNeeded(cur))
|
||||
doDispatch(cur, FuncRequest(cmd.action == LFUN_CHAR_RIGHT_SELECT ?
|
||||
LFUN_CHAR_BACKWARD_SELECT : LFUN_CHAR_BACKWARD));
|
||||
cmd.action = cmd.action == LFUN_CHAR_RIGHT_SELECT ?
|
||||
LFUN_CHAR_BACKWARD_SELECT : LFUN_CHAR_BACKWARD;
|
||||
else
|
||||
doDispatch(cur, FuncRequest(cmd.action == LFUN_CHAR_RIGHT_SELECT ?
|
||||
LFUN_CHAR_FORWARD_SELECT : LFUN_CHAR_FORWARD));
|
||||
cmd.action = cmd.action == LFUN_CHAR_RIGHT_SELECT ?
|
||||
LFUN_CHAR_FORWARD_SELECT : LFUN_CHAR_FORWARD;
|
||||
doDispatch(cur, cmd);
|
||||
break;
|
||||
|
||||
case LFUN_CHAR_LEFT:
|
||||
case LFUN_CHAR_LEFT_SELECT:
|
||||
//FIXME: for visual cursor, really move left
|
||||
if (reverseDirectionNeeded(cur))
|
||||
doDispatch(cur, FuncRequest(cmd.action == LFUN_CHAR_LEFT_SELECT ?
|
||||
LFUN_CHAR_FORWARD_SELECT : LFUN_CHAR_FORWARD));
|
||||
cmd.action = cmd.action == LFUN_CHAR_LEFT_SELECT ?
|
||||
LFUN_CHAR_FORWARD_SELECT : LFUN_CHAR_FORWARD;
|
||||
else
|
||||
doDispatch(cur, FuncRequest(cmd.action == LFUN_CHAR_LEFT_SELECT ?
|
||||
LFUN_CHAR_BACKWARD_SELECT : LFUN_CHAR_BACKWARD));
|
||||
cmd.action = cmd.action == LFUN_CHAR_LEFT_SELECT ?
|
||||
LFUN_CHAR_BACKWARD_SELECT : LFUN_CHAR_BACKWARD;
|
||||
doDispatch(cur, cmd);
|
||||
break;
|
||||
|
||||
case LFUN_DOWN:
|
||||
|
Loading…
Reference in New Issue
Block a user