mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
improve left/right navigation in root inset
Now the cursor is correctly set when changing cell with xursor left/right.
This commit is contained in:
parent
7055bb0098
commit
ee9451aaf5
@ -161,9 +161,9 @@ bool InsetMathRoot::idxForward(Cursor & cur) const
|
||||
// nucleus is 0 and is on the right
|
||||
if (cur.idx() == 0)
|
||||
return false;
|
||||
else
|
||||
cur.idx() = 0;
|
||||
|
||||
cur.idx() = 0;
|
||||
cur.pos() = 0;
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -173,9 +173,9 @@ bool InsetMathRoot::idxBackward(Cursor & cur) const
|
||||
// nucleus is 0 and is on the right
|
||||
if (cur.idx() == 1)
|
||||
return false;
|
||||
else
|
||||
cur.idx() = 1;
|
||||
|
||||
cur.idx() = 1;
|
||||
cur.pos() = cur.lastpos();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user