commit 439ad49933b42f50e2d8b61118fdd67220e72d63
Author: Guillaume Munch <[email protected]>
Date: Sat Apr 16 23:40:47 2016 +0100
Correct strange FIXME
diff --git a/src/Cursor.cpp b/src/Cursor.cpp
index 26aeabf..ed182ac 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 a0f5ec1..de24056 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