]> git.lyx.org Git - features.git/commitdiff
Fixup e64ea357
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 24 Nov 2017 22:36:28 +0000 (23:36 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 24 Nov 2017 22:36:28 +0000 (23:36 +0100)
Cursor at end of paragraph should be treated as if boundary was on.

src/BufferView.cpp

index 831fa8565ce8dce57159696894309784f94d0971..c043c0a5d454b1f74b3acbac8176120d23e31076 100644 (file)
@@ -3160,7 +3160,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();