mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
Amend b583fb26e8
It failed in the case where a selection already existed (the anchor would be wrongly reset).
This commit is contained in:
parent
185e630875
commit
68d825fed8
@ -1607,8 +1607,9 @@ 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:
|
||||||
// Set the cursor
|
if (!bvcur.selection())
|
||||||
bvcur.resetAnchor();
|
// 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())
|
||||||
|
Loading…
Reference in New Issue
Block a user