commit 50403c4ecf08e50069ce48d794cc75b7490a2281
Author: Jean-Marc Lasgouttes <[email protected]>
Date:   Mon Apr 18 18:13:17 2022 +0200

    Improve selection when selecting out of inset by the left
    
    1/ put cusror in some display inset
    2/ use shift-left until the cursor exits the inset
    3/ see how the selection extends on the right.
    
    This is not really a selection drawing bug, but rather the fact that
    the anchor will be normalized to the first position after the inset,
    which is in the next row.
    
    This can be avoided by using the boundary property.
    
    See discussion in bug #12520.
---
 src/Cursor.cpp |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/Cursor.cpp b/src/Cursor.cpp
index d2190e7..ce02812 100644
--- a/src/Cursor.cpp
+++ b/src/Cursor.cpp
@@ -322,6 +322,7 @@ DocIterator CursorData::selectionEnd() const
        if (di.depth() > depth()) {
                di.resize(depth());
                ++di.pos();
+               di.boundary(true);
        }
        return di;
 }
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to