]> git.lyx.org Git - lyx.git/blobdiff - src/Text3.cpp
Remove unnecessary directives and preset search on fly.
[lyx.git] / src / Text3.cpp
index 3f48d19f4503be17425bcc7d9675d667e7db9d35..eafce2854c2efdb308b9550a4a382a8a58439702 100644 (file)
@@ -1607,7 +1607,9 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
                bvcur.setMark(false);
                switch (cmd.button()) {
                case mouse_button::button1:
-                       // Set the cursor
+                       if (!bvcur.selection())
+                               // Set the cursor
+                               bvcur.resetAnchor();
                        if (!bv->mouseSetCursor(cur, cmd.modifier() == ShiftModifier))
                                cur.screenUpdateFlags(Update::SinglePar | Update::FitCursor);
                        if (bvcur.wordSelection())