mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-21 17:51:03 +00:00
Amend 3e432ec631
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:
parent
9e44cd672a
commit
36d0e3032d
@ -1606,8 +1606,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.argument() == "region-select"))
|
||||
cur.screenUpdateFlags(Update::FitCursor);
|
||||
if (bvcur.wordSelection())
|
||||
|
Loading…
Reference in New Issue
Block a user