mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-23 00:38:01 +00:00
Avoid unnecessary redraw.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21468 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
e660f44001
commit
d69115d9db
@ -543,12 +543,10 @@ void InsetMathNest::doDispatch(Cursor & cur, FuncRequest & cmd)
|
||||
case LFUN_CHAR_RIGHT_SELECT:
|
||||
//FIXME: for visual cursor, really move right
|
||||
if (reverseDirectionNeeded(cur))
|
||||
lyx::dispatch(FuncRequest(
|
||||
cmd.action == LFUN_CHAR_RIGHT_SELECT ?
|
||||
doDispatch(cur, FuncRequest(cmd.action == LFUN_CHAR_RIGHT_SELECT ?
|
||||
LFUN_CHAR_BACKWARD_SELECT : LFUN_CHAR_BACKWARD));
|
||||
else
|
||||
lyx::dispatch(FuncRequest(
|
||||
cmd.action == LFUN_CHAR_RIGHT_SELECT ?
|
||||
doDispatch(cur, FuncRequest(cmd.action == LFUN_CHAR_RIGHT_SELECT ?
|
||||
LFUN_CHAR_FORWARD_SELECT : LFUN_CHAR_FORWARD));
|
||||
break;
|
||||
|
||||
@ -556,12 +554,10 @@ void InsetMathNest::doDispatch(Cursor & cur, FuncRequest & cmd)
|
||||
case LFUN_CHAR_LEFT_SELECT:
|
||||
//FIXME: for visual cursor, really move left
|
||||
if (reverseDirectionNeeded(cur))
|
||||
lyx::dispatch(FuncRequest(
|
||||
cmd.action == LFUN_CHAR_LEFT_SELECT ?
|
||||
doDispatch(cur, FuncRequest(cmd.action == LFUN_CHAR_LEFT_SELECT ?
|
||||
LFUN_CHAR_FORWARD_SELECT : LFUN_CHAR_FORWARD));
|
||||
else
|
||||
lyx::dispatch(FuncRequest(
|
||||
cmd.action == LFUN_CHAR_LEFT_SELECT ?
|
||||
doDispatch(cur, FuncRequest(cmd.action == LFUN_CHAR_LEFT_SELECT ?
|
||||
LFUN_CHAR_BACKWARD_SELECT : LFUN_CHAR_BACKWARD));
|
||||
break;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user