Reset anchor before selecting with S-button1

(cherry picked from commit b583fb26e8)
This commit is contained in:
Jean-Marc Lasgouttes 2016-08-23 12:22:35 +02:00
parent e2489c1c31
commit 3e432ec631
2 changed files with 4 additions and 0 deletions

View File

@ -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())

View File

@ -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