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:
Jean-Marc Lasgouttes 2018-11-08 21:22:04 -08:00
parent 7055bb0098
commit ee9451aaf5

View File

@ -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;
}