mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Reset anchor before selecting with S-button1
(cherry picked from commit b583fb26e8
)
This commit is contained in:
parent
e2489c1c31
commit
3e432ec631
@ -1607,6 +1607,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.argument() == "region-select"))
|
if (!bv->mouseSetCursor(cur, cmd.argument() == "region-select"))
|
||||||
cur.screenUpdateFlags(Update::FitCursor);
|
cur.screenUpdateFlags(Update::FitCursor);
|
||||||
if (bvcur.wordSelection())
|
if (bvcur.wordSelection())
|
||||||
|
@ -88,6 +88,9 @@ What's new
|
|||||||
|
|
||||||
- Let M-x give focus to minibuffer when it is already open.
|
- Let M-x give focus to minibuffer when it is already open.
|
||||||
|
|
||||||
|
- When doing a selection with Shift-click, make sure that the selection anchor
|
||||||
|
is correct.
|
||||||
|
|
||||||
|
|
||||||
* INTERNALS
|
* INTERNALS
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user