mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-25 05:55:34 +00:00
Set cursor properly after double/triple click in mathed
Without this setCurrentFont() is not correctly called on the
BufferView cursor and the cursor could appear in L-form.
Fixes bug #10686.
(cherry picked from commit 5d7dae9e38
)
This commit is contained in:
parent
8fef81a373
commit
c492f22593
@ -753,20 +753,18 @@ void InsetMathNest::doDispatch(Cursor & cur, FuncRequest & cmd)
|
||||
case LFUN_MOUSE_DOUBLE:
|
||||
case LFUN_WORD_SELECT:
|
||||
cur.pos() = 0;
|
||||
cur.resetAnchor();
|
||||
cur.setSelection(true);
|
||||
cur.bv().mouseSetCursor(cur);
|
||||
cur.pos() = cur.lastpos();
|
||||
cur.bv().cursor() = cur;
|
||||
cur.bv().mouseSetCursor(cur, true);
|
||||
break;
|
||||
|
||||
case LFUN_MOUSE_TRIPLE:
|
||||
cur.idx() = 0;
|
||||
cur.pos() = 0;
|
||||
cur.resetAnchor();
|
||||
cur.setSelection(true);
|
||||
cur.bv().mouseSetCursor(cur);
|
||||
cur.idx() = cur.lastidx();
|
||||
cur.pos() = cur.lastpos();
|
||||
cur.bv().cursor() = cur;
|
||||
cur.bv().mouseSetCursor(cur, true);
|
||||
break;
|
||||
|
||||
case LFUN_PARAGRAPH_UP:
|
||||
|
@ -69,7 +69,10 @@ What's new
|
||||
|
||||
- Fix glacial performance with ancient Hebrew text on macOS.
|
||||
|
||||
- Fix hole in selection for some zoom and justification values (bug 8883).
|
||||
- Fix hole in selection for some zoom and justification values (bug
|
||||
8883).
|
||||
|
||||
- Fix cursor state after double/triple click in mathed (bug #10686).
|
||||
|
||||
- Fix potential crash when cursor enters an inset (bug 10691).
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user