mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
Restore correct left/right navigation in root inset
Now all cells are correctly visited in sequence when moving with cursor left/right.
This commit is contained in:
parent
93db2bd08e
commit
77234fecd8
@ -180,6 +180,24 @@ bool InsetMathRoot::idxBackward(Cursor & cur) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
bool InsetMathRoot::idxFirst(Cursor & cur) const
|
||||||
|
{
|
||||||
|
LASSERT(&cur.inset() == this, return false);
|
||||||
|
cur.idx() = 1;
|
||||||
|
cur.pos() = 0;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
bool InsetMathRoot::idxLast(Cursor & cur) const
|
||||||
|
{
|
||||||
|
LASSERT(&cur.inset() == this, return false);
|
||||||
|
cur.idx() = 0;
|
||||||
|
cur.pos() = cur.lastpos();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void InsetMathRoot::maple(MapleStream & os) const
|
void InsetMathRoot::maple(MapleStream & os) const
|
||||||
{
|
{
|
||||||
os << '(' << cell(0) << ")^(1/(" << cell(1) <<"))";
|
os << '(' << cell(0) << ")^(1/(" << cell(1) <<"))";
|
||||||
|
@ -30,6 +30,10 @@ public:
|
|||||||
bool idxForward(Cursor & cur) const;
|
bool idxForward(Cursor & cur) const;
|
||||||
///
|
///
|
||||||
bool idxBackward(Cursor & cur) const;
|
bool idxBackward(Cursor & cur) const;
|
||||||
|
///
|
||||||
|
bool idxFirst(Cursor &) const;
|
||||||
|
///
|
||||||
|
bool idxLast(Cursor &) const;
|
||||||
|
|
||||||
///
|
///
|
||||||
void metrics(MetricsInfo & mi, Dimension & dim) const;
|
void metrics(MetricsInfo & mi, Dimension & dim) const;
|
||||||
|
Loading…
Reference in New Issue
Block a user