In mathed, only select current cell on double-click

Keep the behavior of split selection with triple click.

Fixes part of #9747. The remainder was fixed at f58d9f27, AFAICS.
This commit is contained in:
Jean-Marc Lasgouttes 2016-03-14 15:14:57 +01:00
parent 3d178720f0
commit be7e89a29b

View File

@ -735,10 +735,17 @@ void InsetMathNest::doDispatch(Cursor & cur, FuncRequest & cmd)
}
case LFUN_MOUSE_DOUBLE:
case LFUN_MOUSE_TRIPLE:
case LFUN_WORD_SELECT:
cur.pos() = 0;
cur.resetAnchor();
cur.setSelection(true);
cur.pos() = cur.lastpos();
cur.bv().cursor() = cur;
break;
case LFUN_MOUSE_TRIPLE:
cur.idx() = 0;
cur.pos() = 0;
cur.resetAnchor();
cur.setSelection(true);
cur.idx() = cur.lastidx();