Correct strange FIXME

This commit is contained in:
Guillaume Munch 2016-04-16 23:40:47 +01:00 committed by Richard Heck
parent 7faafd037e
commit 70fe2c618e
2 changed files with 2 additions and 9 deletions

View File

@ -1061,12 +1061,6 @@ CursorSlice Cursor::normalAnchor() const
} }
DocIterator & Cursor::realAnchor()
{
return anchor_;
}
CursorSlice Cursor::selBegin() const CursorSlice Cursor::selBegin() const
{ {
if (!selection()) if (!selection())

View File

@ -297,10 +297,9 @@ public:
/// access to normalized selection anchor /// access to normalized selection anchor
CursorSlice normalAnchor() const; CursorSlice normalAnchor() const;
// FIXME: this can't be a const & and a const function because
// LFUN_TAB_* wants to move the real anchor.
/// access to real selection anchor /// access to real selection anchor
DocIterator & realAnchor(); DocIterator const & realAnchor() const { return anchor_; }
DocIterator & realAnchor() { return anchor_; }
/// sets anchor to cursor position /// sets anchor to cursor position
void resetAnchor(); void resetAnchor();
/// access to owning BufferView /// access to owning BufferView