From: Jean-Marc Lasgouttes Date: Tue, 23 Aug 2016 10:22:35 +0000 (+0200) Subject: Reset anchor before selecting with S-button1 X-Git-Tag: 2.3.0alpha1~1108 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=b583fb26e89ccdc242e5c11d5e9d8b0606bee957;p=features.git Reset anchor before selecting with S-button1 --- diff --git a/src/Text3.cpp b/src/Text3.cpp index 3f48d19f45..c6f047afb7 100644 --- a/src/Text3.cpp +++ b/src/Text3.cpp @@ -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())