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

(cherry picked from commit d01dd54bf14167e880c1d0a6382b87e622c2c2ed)

src/BufferView.cpp

index acde1ceef3485e2c8201590e0fa00af6fccb5c62..23d0055221e6aa30334c687c04cddc9a92b35f94 100644 (file)
@@ -3164,7 +3164,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();