Reset anchor before selecting with S-button1

This commit is contained in:
Jean-Marc Lasgouttes 2016-08-23 12:22:35 +02:00
parent 65b0e84b54
commit b583fb26e8

View File

@ -1608,6 +1608,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
switch (cmd.button()) { switch (cmd.button()) {
case mouse_button::button1: case mouse_button::button1:
// Set the cursor // Set the cursor
bvcur.resetAnchor();
if (!bv->mouseSetCursor(cur, cmd.modifier() == ShiftModifier)) if (!bv->mouseSetCursor(cur, cmd.modifier() == ShiftModifier))
cur.screenUpdateFlags(Update::SinglePar | Update::FitCursor); cur.screenUpdateFlags(Update::SinglePar | Update::FitCursor);
if (bvcur.wordSelection()) if (bvcur.wordSelection())