It failed in the case where a selection already existed (the anchor would be wrongly reset).

(cherry picked from commit 68d825fed8)
This commit is contained in:
Jean-Marc Lasgouttes 2016-08-29 12:03:33 +02:00
parent 9e44cd672a
commit 36d0e3032d

View File

@ -1606,6 +1606,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
bvcur.setMark(false); bvcur.setMark(false);
switch (cmd.button()) { switch (cmd.button()) {
case mouse_button::button1: case mouse_button::button1:
if (!bvcur.selection())
// Set the cursor // Set the cursor
bvcur.resetAnchor(); bvcur.resetAnchor();
if (!bv->mouseSetCursor(cur, cmd.argument() == "region-select")) if (!bv->mouseSetCursor(cur, cmd.argument() == "region-select"))