From: Jean-Marc Lasgouttes Date: Mon, 14 Mar 2016 14:14:57 +0000 (+0100) Subject: In mathed, only select current cell on double-click X-Git-Tag: 2.2.0rc1~84 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=be7e89a29b451796030839150495dd12711d7914;p=features.git 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. --- diff --git a/src/mathed/InsetMathNest.cpp b/src/mathed/InsetMathNest.cpp index 90007c072e..493f529d1e 100644 --- a/src/mathed/InsetMathNest.cpp +++ b/src/mathed/InsetMathNest.cpp @@ -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();