]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.cpp
de.po: update
[lyx.git] / src / BufferView.cpp
index 831fa8565ce8dce57159696894309784f94d0971..29bb53b8f7e71708a8c54211fda8b4f665256b77 100644 (file)
@@ -2611,12 +2611,6 @@ Cursor const & BufferView::cursor() const
 }
 
 
-pit_type BufferView::anchor_ref() const
-{
-       return d->anchor_pit_;
-}
-
-
 bool BufferView::singleParUpdate()
 {
        Text & buftext = buffer_.text();
@@ -3160,7 +3154,8 @@ void BufferView::draw(frontend::Painter & pain, bool paint_caret)
        // Remember what has just been done for the next draw() step
        if (paint_caret) {
                d->caret_slice_ = d->cursor_.top();
-               if (d->cursor_.boundary())
+               if (d->cursor_.boundary()
+                   || d->cursor_.top().pos() == d->cursor_.top().lastpos())
                        --d->caret_slice_.pos();
        } else
                d->caret_slice_ = CursorSlice();