From 50403c4ecf08e50069ce48d794cc75b7490a2281 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Mon, 18 Apr 2022 18:13:17 +0200 Subject: [PATCH] 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 file changed, 1 insertion(+) diff --git a/src/Cursor.cpp b/src/Cursor.cpp index d2190e729f..ce0281251a 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; }