mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 08:28:25 +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.
This commit is contained in:
parent
ae56167718
commit
5d7dae9e38
@ -735,20 +735,18 @@ void InsetMathNest::doDispatch(Cursor & cur, FuncRequest & cmd)
|
||||
case LFUN_MOUSE_DOUBLE:
|
||||
case LFUN_WORD_SELECT:
|
||||
cur.pos() = 0;
|
||||
cur.resetAnchor();
|
||||
cur.selection(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.selection(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_LINE_BEGIN:
|
||||
|
Loading…
Reference in New Issue
Block a user