diff --git a/src/Cursor.cpp b/src/Cursor.cpp index 26aeabf1d5..ed182ace64 100644 --- a/src/Cursor.cpp +++ b/src/Cursor.cpp @@ -1061,12 +1061,6 @@ CursorSlice Cursor::normalAnchor() const } -DocIterator & Cursor::realAnchor() -{ - return anchor_; -} - - CursorSlice Cursor::selBegin() const { if (!selection()) diff --git a/src/Cursor.h b/src/Cursor.h index a0f5ec14bf..de2405692a 100644 --- a/src/Cursor.h +++ b/src/Cursor.h @@ -297,10 +297,9 @@ public: /// access to normalized selection anchor 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 - DocIterator & realAnchor(); + DocIterator const & realAnchor() const { return anchor_; } + DocIterator & realAnchor() { return anchor_; } /// sets anchor to cursor position void resetAnchor(); /// access to owning BufferView