It failed in the case where a selection already existed (the anchor would be wrongly reset).
This commit is contained in:
Jean-Marc Lasgouttes 2016-08-29 12:03:33 +02:00
parent 185e630875
commit 68d825fed8

View File

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