]> git.lyx.org Git - lyx.git/blobdiff - src/DocIterator.cpp
* do not lookup the same macro all the time
[lyx.git] / src / DocIterator.cpp
index 68c64b9b601af4db0d446540a652434b65224ca0..3ef66b46c705307d2ea416bf93df8d05d5d4df56 100644 (file)
@@ -432,6 +432,19 @@ void DocIterator::forwardPar()
 }
 
 
+void DocIterator::forwardIdx()
+{
+       CursorSlice & tip = top();
+
+       //prevent endless loops
+       BOOST_ASSERT(tip.idx() < lastidx());
+
+       ++tip.idx();
+       tip.pit() = 0;
+       tip.pos() = 0;
+}
+
+
 void DocIterator::forwardChar()
 {
        forwardPos();