}
-void LCursor::cell(int idx)
-{
- BOOST_ASSERT(!cursor_.empty());
- cursor_.back().idx_ = idx;
-}
-
-
-int LCursor::cell() const
+void LCursor::resetAnchor()
{
- BOOST_ASSERT(!cursor_.empty());
- return cursor_.back().idx_;
+ anchor_ = cursor_;
}
-void LCursor::resetAnchor()
+BufferView & LCursor::bv() const
{
- anchor_ = cursor_;
+ return *bv_;
}