commit 9c8e3df86bb3140435e022d67cd7b6f7f8575c71
Author: Jean-Marc Lasgouttes <lasgout...@lyx.org>
Date:   Fri Nov 24 23:36:28 2017 +0100

    Fixup ac4bcb12
    
    Cursor at end of paragraph should be treated as if boundary was on.
    
    (cherry picked from commit d01dd54bf14167e880c1d0a6382b87e622c2c2ed)
---
 src/BufferView.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/BufferView.cpp b/src/BufferView.cpp
index acde1ce..23d0055 100644
--- a/src/BufferView.cpp
+++ b/src/BufferView.cpp
@@ -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();

Reply via email to