From 70fe2c618edc606b799a1799ca3b4c4a1d98a08b Mon Sep 17 00:00:00 2001 From: Guillaume Munch Date: Sat, 16 Apr 2016 23:40:47 +0100 Subject: [PATCH] Correct strange FIXME --- src/Cursor.cpp | 6 ------ src/Cursor.h | 5 ++--- 2 files changed, 2 insertions(+), 9 deletions(-) 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