]> git.lyx.org Git - features.git/blobdiff - src/cursor.C
and some mathed de-uglyfication
[features.git] / src / cursor.C
index 25ef913692325bbec9abbcd42783bebc50cf507e..919c68375a0b729a9e0f35193550716bc6085282 100644 (file)
@@ -217,21 +217,13 @@ InsetTabular * LCursor::innerInsetTabular() const
 }
 
 
-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_;
 }