]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.C
Change to use preffered calling of Boost.Function
[lyx.git] / src / BufferView.C
index 88f6ea25303a16963a7a076ec59765d28689bbec..c8e1883b55e71339d50ebd58114ca573fb3d64f4 100644 (file)
@@ -357,11 +357,8 @@ void BufferView::putSelectionAt(DocIterator const & cur,
 
        if (length) {
                if (backwards) {
+                       cursor().pos() += length;
                        cursor().setSelection(cursor(), -length);
-                       DocIterator const it = cursor();
-                       cursor().setCursor(cursor().anchor_);
-                       cursor().selection() = true;
-                       cursor().anchor_ = it;
                } else
                        cursor().setSelection(cursor(), length);
        }