From 7799e7960cb8627bbd8efa1d6efb78a811675d16 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Mon, 14 Mar 2016 15:14:57 +0100 Subject: [PATCH] In mathed, select only current cell on double-click Keep the behavior of split selection with triple click. Fixes part of #9747. --- src/mathed/InsetMathNest.cpp | 9 ++++++++- status.21x | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/mathed/InsetMathNest.cpp b/src/mathed/InsetMathNest.cpp index ff5e1955c5..9150f4fc76 100644 --- a/src/mathed/InsetMathNest.cpp +++ b/src/mathed/InsetMathNest.cpp @@ -729,10 +729,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(); diff --git a/status.21x b/status.21x index 6ea9673b33..aee0f3c0fb 100644 --- a/status.21x +++ b/status.21x @@ -43,7 +43,7 @@ What's new - The indentation of beamer frame contents has been decreased and unified. - +- In mathed, select only current cell on double-click * DOCUMENTATION AND LOCALIZATION