commit 3e432ec6314771e21ded50bf95ef4b6c4f8ae6e9
Author: Jean-Marc Lasgouttes <[email protected]>
Date: Tue Aug 23 12:22:35 2016 +0200
Reset anchor before selecting with S-button1
(cherry picked from commit b583fb26e89ccdc242e5c11d5e9d8b0606bee957)
---
src/Text3.cpp | 1 +
status.22x | 3 +++
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/Text3.cpp b/src/Text3.cpp
index 49df75e..4883eb8 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 d190f58..0d485dc 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