]> git.lyx.org Git - features.git/commitdiff
Reset anchor before selecting with S-button1
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 23 Aug 2016 10:22:35 +0000 (12:22 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 24 Aug 2016 09:59:01 +0000 (11:59 +0200)
(cherry picked from commit b583fb26e89ccdc242e5c11d5e9d8b0606bee957)

src/Text3.cpp
status.22x

index 49df75efa34096447d3043c91591d3227777383f..4883eb82db18d14d9a2792d2af1bf69d9ec575e8 100644 (file)
@@ -1607,6 +1607,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
                switch (cmd.button()) {
                case mouse_button::button1:
                        // Set the cursor
+                       bvcur.resetAnchor();
                        if (!bv->mouseSetCursor(cur, cmd.argument() == "region-select"))
                                cur.screenUpdateFlags(Update::FitCursor);
                        if (bvcur.wordSelection())
index d190f58623b648f5e236e868b1f8ed6fb800f924..0d485dc9bfbf21939a9322f188a3c231e957054e 100644 (file)
@@ -88,6 +88,9 @@ What's new
 
 - Let M-x give focus to minibuffer when it is already open.
 
+- When doing a selection with Shift-click, make sure that the selection anchor
+  is correct.
+
 
 * INTERNALS