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.2.2~54 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=3e432ec6314;p=features.git Reset anchor before selecting with S-button1 (cherry picked from commit b583fb26e89ccdc242e5c11d5e9d8b0606bee957) --- diff --git a/src/Text3.cpp b/src/Text3.cpp index 49df75efa3..4883eb82db 100644 --- a/src/Text3.cpp +++ b/src/Text3.cpp @@ -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()) diff --git a/status.22x b/status.22x index d190f58623..0d485dc9bf 100644 --- a/status.22x +++ b/status.22x @@ -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