mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 02:49:46 +00:00
Reset anchor before selecting with S-button1
This commit is contained in:
parent
65b0e84b54
commit
b583fb26e8
@ -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())
|
||||||
|
Loading…
Reference in New Issue
Block a user