]> 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>
Tue, 23 Aug 2016 10:22:35 +0000 (12:22 +0200)
src/Text3.cpp

index 3f48d19f4503be17425bcc7d9675d667e7db9d35..c6f047afb705f494c9f2c8ec46105641c43eaf16 100644 (file)
@@ -1608,6 +1608,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.modifier() == ShiftModifier))
                                cur.screenUpdateFlags(Update::SinglePar | Update::FitCursor);
                        if (bvcur.wordSelection())