}
+bool MathMacro::idxUpDown(Cursor & cur, bool up) const
+{
+ if (up) {
+ if (cur.idx() == 0)
+ return false;
+ --cur.idx();
+ } else {
+ if (cur.idx() + 1 >= nargs())
+ return false;
+ ++cur.idx();
+ }
+ cur.pos() = cell(cur.idx()).x2pos(cur.x_target());
+ return true;
+}
+
+
bool MathMacro::notifyCursorLeaves(Cursor & cur)
{
cur.updateFlags(Update::Force);
/// target pos when we enter the inset from the right by pressing "Left"
bool idxLast(Cursor &) const;
///
+ bool idxUpDown(Cursor & cur, bool up) const;
+ ///
virtual bool notifyCursorLeaves(Cursor &);
///
docstring name() const;