X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FText3.cpp;h=eafce2854c2efdb308b9550a4a382a8a58439702;hb=7d4292918e6bf66649229e2946e6ac0a30694494;hp=3f48d19f4503be17425bcc7d9675d667e7db9d35;hpb=4b64aaf4ce026aacce02cfda58dcb1cd954f4adb;p=lyx.git diff --git a/src/Text3.cpp b/src/Text3.cpp index 3f48d19f45..eafce2854c 100644 --- a/src/Text3.cpp +++ b/src/Text3.cpp @@ -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())