- // otherwise try to move on one cell if possible
- if (idx() < lastidx()) {
- //lyxerr << "... next idx" << endl;
- ++idx();
- pit() = 0;
- pos() = 0;
- return;
- }
- BOOST_ASSERT(false);
+ // otherwise move on one cell
+ //lyxerr << "... next idx" << endl;
+
+ BOOST_ASSERT(idx_ < nargs());
+
+ ++idx_;
+ pit_ = 0;
+ pos_ = 0;
+}
+
+
+void CursorSlice::forwardIdx()
+{
+ BOOST_ASSERT(idx_ < nargs());
+
+ ++idx_;
+ pit_ = 0;
+ pos_ = 0;